Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1929)

Unified Diff: Source/devtools/front_end/sources/StyleSheetOutlineDialog.js

Issue 685203003: DevTools: Get rid of synchronous XHRs in the frontend code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
}
/**

Powered by Google App Engine
This is Rietveld 408576698