Title: [93419] trunk/Source/WebCore
Revision
93419
Author
podivi...@chromium.org
Date
2011-08-19 09:17:40 -0700 (Fri, 19 Aug 2011)

Log Message

Web Inspector: update scope variables upon value changes via console.
https://bugs.webkit.org/show_bug.cgi?id=54720

Reviewed by Pavel Feldman.

* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (93418 => 93419)


--- trunk/Source/WebCore/ChangeLog	2011-08-19 16:16:50 UTC (rev 93418)
+++ trunk/Source/WebCore/ChangeLog	2011-08-19 16:17:40 UTC (rev 93419)
@@ -1,3 +1,13 @@
+2011-08-19  Pavel Podivilov  <podivi...@chromium.org>
+
+        Web Inspector: update scope variables upon value changes via console.
+        https://bugs.webkit.org/show_bug.cgi?id=54720
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/ScriptsPanel.js:
+        (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
+
 2011-08-18  Pavel Podivilov  <podivi...@chromium.org>
 
         Web Inspector: extract breakpoint management code to a separate class and add tests.

Modified: trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js (93418 => 93419)


--- trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js	2011-08-19 16:16:50 UTC (rev 93418)
+++ trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js	2011-08-19 16:17:40 UTC (rev 93419)
@@ -414,8 +414,14 @@
 
     evaluateInSelectedCallFrame: function(code, objectGroup, includeCommandLineAPI, returnByValue, callback)
     {
+        function didEvaluate()
+        {
+            if (objectGroup === "console")
+                this.sidebarPanes.scopechain.update(this._presentationModel.selectedCallFrame);
+            callback.apply(null, arguments);
+        }
         var selectedCallFrame = this._presentationModel.selectedCallFrame;
-        selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, callback);
+        selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, didEvaluate.bind(this));
     },
 
     getSelectedCallFrameVariables: function(callback)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to