| Index: Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| diff --git a/Source/devtools/front_end/sources/UISourceCodeFrame.js b/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| index 8263e32a77ed6a9361709fdf56600e247e969be2..fb1875e845c07357e9ede61a016eff4fb1b91be5 100644
|
| --- a/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| +++ b/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| @@ -40,6 +40,7 @@ WebInspector.UISourceCodeFrame = function(uiSourceCode)
|
|
|
| this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyChanged, this._onWorkingCopyChanged, this);
|
| this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyCommitted, this._onWorkingCopyCommitted, this);
|
| + this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.SavedStateUpdated, this._onSavedStateUpdated, this);
|
| this._updateStyle();
|
| }
|
|
|
| @@ -149,6 +150,14 @@ WebInspector.UISourceCodeFrame.prototype = {
|
| });
|
| },
|
|
|
| + /**
|
| + * @param {!WebInspector.Event} event
|
| + */
|
| + _onSavedStateUpdated: function(event)
|
| + {
|
| + this._updateStyle();
|
| + },
|
| +
|
| _updateStyle: function()
|
| {
|
| this.element.classList.toggle("source-frame-unsaved-committed-changes", this._uiSourceCode.hasUnsavedCommittedChanges());
|
|
|