Changeset 76795 in webkit


Ignore:
Timestamp:
Jan 27, 2011 6:22:11 AM (13 years ago)
Author:
podivilov@chromium.org
Message:

2011-01-27 Pavel Podivilov <podivilov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: Closure and Global variable details automatically collapsing on each step through JavaScript code.
https://bugs.webkit.org/show_bug.cgi?id=53234

  • inspector/debugger-expand-scope.html:
  • inspector/debugger-proto-property.html:

2011-01-27 Pavel Podivilov <podivilov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: Closure and Global variable details automatically collapsing on each step through JavaScript code.
https://bugs.webkit.org/show_bug.cgi?id=53234

  • inspector/front-end/ScopeChainSidebarPane.js: (WebInspector.ScopeChainSidebarPane): (WebInspector.ScopeChainSidebarPane.prototype.update):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r76793 r76795  
     12011-01-27  Pavel Podivilov  <podivilov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: Closure and Global variable details automatically collapsing on each step through JavaScript code.
     6        https://bugs.webkit.org/show_bug.cgi?id=53234
     7
     8        * inspector/debugger-expand-scope.html:
     9        * inspector/debugger-proto-property.html:
     10
    1112011-01-27  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/LayoutTests/inspector/debugger-expand-scope.html

    r67385 r76795  
    3636        // Expand all but global scopes. Expanding global scope takes for too long
    3737        // so we keep it collapsed.
    38         var sections = WebInspector.currentPanel.sidebarPanes.scopechain.sections;
     38        var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections;
    3939        // global scope is always the last one.
    4040        for (var i = 0; i < sections.length - 1; i++)
     
    4545    function step3()
    4646    {
    47         var sections = WebInspector.currentPanel.sidebarPanes.scopechain.sections;
     47        var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections;
    4848        InspectorTest.addResult("");
    4949        InspectorTest.addResult("Dump scope sections:");
  • trunk/LayoutTests/inspector/debugger-proto-property.html

    r66596 r76795  
    3131    function step2(callFrames)
    3232    {
    33         var sections = WebInspector.currentPanel.sidebarPanes.scopechain.sections;
     33        var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections;
    3434        var localScope = sections[0].propertiesTreeOutline;
    3535        var properties = [
  • trunk/Source/WebCore/ChangeLog

    r76794 r76795  
     12011-01-27  Pavel Podivilov  <podivilov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: Closure and Global variable details automatically collapsing on each step through JavaScript code.
     6        https://bugs.webkit.org/show_bug.cgi?id=53234
     7
     8        * inspector/front-end/ScopeChainSidebarPane.js:
     9        (WebInspector.ScopeChainSidebarPane):
     10        (WebInspector.ScopeChainSidebarPane.prototype.update):
     11
    1122011-01-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Source/WebCore/inspector/front-end/ScopeChainSidebarPane.js

    r76794 r76795  
    2727{
    2828    WebInspector.SidebarPane.call(this, WebInspector.UIString("Scope Variables"));
     29    this._sections = [];
     30    this._expandedSections = {};
    2931    this._expandedProperties = [];
    3032}
     
    3537        this.bodyElement.removeChildren();
    3638
    37         this.sections = [];
    38         this.callFrame = callFrame;
    39 
    4039        if (!callFrame) {
    4140            var infoElement = document.createElement("div");
     
    4544            return;
    4645        }
     46
     47        for (var i = 0; i < this._sections.length; ++i) {
     48            var section = this._sections[i];
     49            if (!section.title)
     50                continue;
     51            if (section.expanded)
     52                this._expandedSections[section.title] = true;
     53            else
     54                delete this._expandedSections[section.title];
     55        }
     56
     57        this._sections = [];
    4758
    4859        var foundLocalScope = false;
     
    8293            section.pane = this;
    8394
    84             if (!foundLocalScope || scopeObjectProxy.isLocal)
     95            if (!foundLocalScope || scopeObjectProxy.isLocal || title in this._expandedSections)
    8596                section.expanded = true;
    8697
    87             this.sections.push(section);
     98            this._sections.push(section);
    8899            this.bodyElement.appendChild(section.element);
    89100        }
Note: See TracChangeset for help on using the changeset viewer.