Title: [99819] trunk/Source/WebCore
Revision
99819
Author
pfeld...@chromium.org
Date
2011-11-09 23:59:18 -0800 (Wed, 09 Nov 2011)

Log Message

Web Inspector: console does not work after switching panel while editing.
https://bugs.webkit.org/show_bug.cgi?id=71918

Reviewed by Yury Semikhatsky.

* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame.prototype.wasShown):
(WebInspector.SourceFrame.prototype.willHide):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (99818 => 99819)


--- trunk/Source/WebCore/ChangeLog	2011-11-10 07:39:50 UTC (rev 99818)
+++ trunk/Source/WebCore/ChangeLog	2011-11-10 07:59:18 UTC (rev 99819)
@@ -1,3 +1,14 @@
+2011-11-09  Pavel Feldman  <pfeld...@google.com>
+
+        Web Inspector: console does not work after switching panel while editing.
+        https://bugs.webkit.org/show_bug.cgi?id=71918
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/SourceFrame.js:
+        (WebInspector.SourceFrame.prototype.wasShown):
+        (WebInspector.SourceFrame.prototype.willHide):
+
 2011-11-09  Rakesh KN  <rakesh...@motorola.com>
 
         Need support for dirname attribute

Modified: trunk/Source/WebCore/inspector/front-end/SourceFrame.js (99818 => 99819)


--- trunk/Source/WebCore/inspector/front-end/SourceFrame.js	2011-11-10 07:39:50 UTC (rev 99818)
+++ trunk/Source/WebCore/inspector/front-end/SourceFrame.js	2011-11-10 07:59:18 UTC (rev 99819)
@@ -83,6 +83,8 @@
     {
         this._ensureContentLoaded();
         this._textViewer.show(this.element);
+        if (this._wasHiddenWhileEditing)
+            this.setReadOnly(false);
     },
 
     willHide: function()
@@ -92,7 +94,9 @@
             this._textViewer.freeCachedElements();
 
         this._clearLineHighlight();
-        this._textViewer.readOnly = true;
+        if (!this._textViewer.readOnly)
+            this._wasHiddenWhileEditing = true;
+        this.setReadOnly(true);
     },
 
     get statusBarItems()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to