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

Unified Diff: Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 1285183006: DevTools: WI.Throttler goes promisified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cc
Patch Set: remove dependent patchset Created 5 years, 4 months 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/elements/ComputedStyleWidget.js
diff --git a/Source/devtools/front_end/elements/ComputedStyleWidget.js b/Source/devtools/front_end/elements/ComputedStyleWidget.js
index a7b22b5a652a361f83e31a42f5a2cb69722fcbe2..f56fa0a0ca156f63c1c18b422f028e0d59a597af 100644
--- a/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -108,17 +108,16 @@ WebInspector.ComputedStyleWidget.prototype = {
/**
* @override
- * @param {!WebInspector.Throttler.FinishCallback} finishedCallback
+ * @return {!Promise.<?>}
*/
- doUpdate: function(finishedCallback)
+ doUpdate: function()
{
var promises = [
this._sharedModel.fetchComputedStyle(),
this._stylesSidebarPane.fetchMatchedCascade()
];
- Promise.all(promises)
- .spread(this._innerRebuildUpdate.bind(this))
- .then(finishedCallback);
+ return Promise.all(promises)
+ .spread(this._innerRebuildUpdate.bind(this));
},
/**
« no previous file with comments | « Source/devtools/front_end/console/ConsoleView.js ('k') | Source/devtools/front_end/elements/ElementsSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698