Index: Source/devtools/front_end/bindings/StylesSourceMapping.js |
diff --git a/Source/devtools/front_end/bindings/StylesSourceMapping.js b/Source/devtools/front_end/bindings/StylesSourceMapping.js |
index ea0a69745197c32a86e80b13688e06fbe97ea45d..ba4edd05f0eedd831438e44bf6d907525df87a43 100644 |
--- a/Source/devtools/front_end/bindings/StylesSourceMapping.js |
+++ b/Source/devtools/front_end/bindings/StylesSourceMapping.js |
@@ -373,16 +373,12 @@ WebInspector.StyleFile.prototype = { |
this._commitThrottler.schedule(this._commitIncrementalEdit.bind(this), false); |
}, |
- /** |
- * @param {!WebInspector.Throttler.FinishCallback} finishCallback |
- */ |
- _commitIncrementalEdit: function(finishCallback) |
+ _commitIncrementalEdit: function() |
{ |
- this._mapping._setStyleContent(this._uiSourceCode, this._uiSourceCode.workingCopy(), this._isMajorChangePending) |
+ var promise = this._mapping._setStyleContent(this._uiSourceCode, this._uiSourceCode.workingCopy(), this._isMajorChangePending) |
.then(this._styleContentSet.bind(this)) |
- .then(finishCallback) |
- .catch(/** @type {function()} */(finishCallback)); |
this._isMajorChangePending = false; |
+ return promise; |
}, |
/** |