| Index: Source/devtools/front_end/elements/PlatformFontsWidget.js
|
| diff --git a/Source/devtools/front_end/elements/PlatformFontsWidget.js b/Source/devtools/front_end/elements/PlatformFontsWidget.js
|
| index 315c31eac55b6b68ec8f64c47dccc2860791c38b..037897bf31f34654ec009aa43d83912f321795ed 100644
|
| --- a/Source/devtools/front_end/elements/PlatformFontsWidget.js
|
| +++ b/Source/devtools/front_end/elements/PlatformFontsWidget.js
|
| @@ -60,21 +60,18 @@ WebInspector.PlatformFontsWidget.createSidebarWrapper = function(sharedModel)
|
| WebInspector.PlatformFontsWidget.prototype = {
|
| /**
|
| * @override
|
| - * @param {!WebInspector.Throttler.FinishCallback} finishedCallback
|
| * @protected
|
| + * @return {!Promise.<?>}
|
| */
|
| - doUpdate: function(finishedCallback)
|
| + doUpdate: function()
|
| {
|
| var cssModel = this._sharedModel.cssModel();
|
| var node = this._sharedModel.node();
|
| - if (!node || !cssModel) {
|
| - finishedCallback();
|
| - return;
|
| - }
|
| - cssModel.platformFontsPromise(node.id)
|
| + if (!node || !cssModel)
|
| + return Promise.resolve();
|
| +
|
| + return cssModel.platformFontsPromise(node.id)
|
| .then(this._refreshUI.bind(this, node))
|
| - .then(finishedCallback)
|
| - .catch(/** @type {function()} */(finishedCallback));
|
| },
|
|
|
| /**
|
|
|