Changeset 76795 in webkit
- Timestamp:
- Jan 27, 2011 6:22:11 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r76793 r76795 1 2011-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 1 11 2011-01-27 Philippe Normand <pnormand@igalia.com> 2 12 -
trunk/LayoutTests/inspector/debugger-expand-scope.html
r67385 r76795 36 36 // Expand all but global scopes. Expanding global scope takes for too long 37 37 // so we keep it collapsed. 38 var sections = WebInspector.currentPanel.sidebarPanes.scopechain. sections;38 var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections; 39 39 // global scope is always the last one. 40 40 for (var i = 0; i < sections.length - 1; i++) … … 45 45 function step3() 46 46 { 47 var sections = WebInspector.currentPanel.sidebarPanes.scopechain. sections;47 var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections; 48 48 InspectorTest.addResult(""); 49 49 InspectorTest.addResult("Dump scope sections:"); -
trunk/LayoutTests/inspector/debugger-proto-property.html
r66596 r76795 31 31 function step2(callFrames) 32 32 { 33 var sections = WebInspector.currentPanel.sidebarPanes.scopechain. sections;33 var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections; 34 34 var localScope = sections[0].propertiesTreeOutline; 35 35 var properties = [ -
trunk/Source/WebCore/ChangeLog
r76794 r76795 1 2011-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 1 12 2011-01-27 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/WebCore/inspector/front-end/ScopeChainSidebarPane.js
r76794 r76795 27 27 { 28 28 WebInspector.SidebarPane.call(this, WebInspector.UIString("Scope Variables")); 29 this._sections = []; 30 this._expandedSections = {}; 29 31 this._expandedProperties = []; 30 32 } … … 35 37 this.bodyElement.removeChildren(); 36 38 37 this.sections = [];38 this.callFrame = callFrame;39 40 39 if (!callFrame) { 41 40 var infoElement = document.createElement("div"); … … 45 44 return; 46 45 } 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 = []; 47 58 48 59 var foundLocalScope = false; … … 82 93 section.pane = this; 83 94 84 if (!foundLocalScope || scopeObjectProxy.isLocal )95 if (!foundLocalScope || scopeObjectProxy.isLocal || title in this._expandedSections) 85 96 section.expanded = true; 86 97 87 this. sections.push(section);98 this._sections.push(section); 88 99 this.bodyElement.appendChild(section.element); 89 100 }
Note: See TracChangeset
for help on using the changeset viewer.