diff options
Diffstat (limited to 'WebCore/inspector/front-end/SourceView.js')
-rw-r--r-- | WebCore/inspector/front-end/SourceView.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/inspector/front-end/SourceView.js b/WebCore/inspector/front-end/SourceView.js index 3f762cc..8092505 100644 --- a/WebCore/inspector/front-end/SourceView.js +++ b/WebCore/inspector/front-end/SourceView.js @@ -59,6 +59,8 @@ WebInspector.SourceView.prototype = { hide: function() { this.sourceFrame.visible = false; + if (!this._frameNeedsSetup) + this.sourceFrame.clearLineHighlight(); WebInspector.View.prototype.hide.call(this); if (this.localSourceFrame) this.localSourceFrame.visible = false; @@ -81,7 +83,7 @@ WebInspector.SourceView.prototype = { this.attach(); delete this._frameNeedsSetup; - WebInspector.getResourceContent(this.resource.identifier, this._contentLoaded.bind(this)); + this.resource.getContents(this._contentLoaded.bind(this)); }, hasContentTab: function() |