Index: Source/devtools/front_end/sources/StyleSheetOutlineDialog.js |
diff --git a/Source/devtools/front_end/sources/StyleSheetOutlineDialog.js b/Source/devtools/front_end/sources/StyleSheetOutlineDialog.js |
index 05b5f9a6ea0f1e5715e83327545977b79a179e04..886e7469413b3e89932f2569b1b9c50ffd8ebbce 100644 |
--- a/Source/devtools/front_end/sources/StyleSheetOutlineDialog.js |
+++ b/Source/devtools/front_end/sources/StyleSheetOutlineDialog.js |
@@ -37,8 +37,7 @@ WebInspector.StyleSheetOutlineDialog = function(uiSourceCode, selectItemCallback |
WebInspector.SelectionDialogContentProvider.call(this); |
this._selectItemCallback = selectItemCallback; |
this._cssParser = new WebInspector.CSSParser(); |
- this._cssParser.addEventListener(WebInspector.CSSParser.Events.RulesParsed, this.refresh.bind(this)); |
- this._cssParser.parse(uiSourceCode.workingCopy()); |
+ this._cssParser.parse(uiSourceCode.workingCopy()).then(this.refresh.bind(this)); |
} |
/** |