Changeset 93419 in webkit


Ignore:
Timestamp:
Aug 19, 2011 9:17:40 AM (13 years ago)
Author:
podivilov@chromium.org
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93415 r93419  
     12011-08-19  Pavel Podivilov  <podivilov@chromium.org>
     2
     3        Web Inspector: update scope variables upon value changes via console.
     4        https://bugs.webkit.org/show_bug.cgi?id=54720
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/ScriptsPanel.js:
     9        (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
     10
    1112011-08-18  Pavel Podivilov  <podivilov@chromium.org>
    212
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r93196 r93419  
    415415    evaluateInSelectedCallFrame: function(code, objectGroup, includeCommandLineAPI, returnByValue, callback)
    416416    {
     417        function didEvaluate()
     418        {
     419            if (objectGroup === "console")
     420                this.sidebarPanes.scopechain.update(this._presentationModel.selectedCallFrame);
     421            callback.apply(null, arguments);
     422        }
    417423        var selectedCallFrame = this._presentationModel.selectedCallFrame;
    418         selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, callback);
     424        selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, didEvaluate.bind(this));
    419425    },
    420426
Note: See TracChangeset for help on using the changeset viewer.