| Index: third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| index 2be5323b8308c26e88c10f81d399c22dc662666a..fc2b6af39333577f79e67672d205395743ab171c 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js
|
| @@ -91,6 +91,7 @@ WebInspector.UISourceCodeFrame.prototype = {
|
| willHide: function()
|
| {
|
| WebInspector.SourceFrame.prototype.willHide.call(this);
|
| + WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, null);
|
| this.element.ownerDocument.defaultView.removeEventListener("focus", this._boundWindowFocused, false);
|
| delete this._boundWindowFocused;
|
| this._uiSourceCode.removeWorkingCopyGetter();
|
| @@ -98,6 +99,24 @@ WebInspector.UISourceCodeFrame.prototype = {
|
|
|
| /**
|
| * @override
|
| + */
|
| + editorFocused: function()
|
| + {
|
| + WebInspector.SourceFrame.prototype.editorFocused.call(this);
|
| + WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, this);
|
| + },
|
| +
|
| + /**
|
| + * @override
|
| + */
|
| + editorBlurred: function()
|
| + {
|
| + WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, null);
|
| + WebInspector.SourceFrame.prototype.editorBlurred.call(this);
|
| + },
|
| +
|
| + /**
|
| + * @override
|
| * @return {boolean}
|
| */
|
| canEditSource: function()
|
|
|