Title: [95287] trunk
Revision
95287
Author
[email protected]
Date
2011-09-16 05:55:32 -0700 (Fri, 16 Sep 2011)

Log Message

Web Inspector: change WebInspector.currentPanel getter/setter to functions.
https://bugs.webkit.org/show_bug.cgi?id=68242

This is necessary for the panel switching performance tests.

Reviewed by Pavel Feldman.

Source/WebCore:

* inspector/front-end/Drawer.js:
(WebInspector.Drawer.prototype.show.animationFinished):
(WebInspector.Drawer.prototype.show):
(WebInspector.Drawer.prototype.hide):
(WebInspector.Drawer.prototype._animateDrawerHeight.animationFinished):
(WebInspector.Drawer.prototype._animateDrawerHeight):
(WebInspector.Drawer.prototype._statusBarDragging):
* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel.prototype.switchToAndFocus):
* inspector/front-end/ResourcesPanel.js:
(WebInspector.ResourcesPanel.prototype.showAnchorLocation):
* inspector/front-end/ScriptsPanel.js:
* inspector/front-end/SearchController.js:
(WebInspector.SearchController.prototype.updateSearchMatchesCount):
(WebInspector.SearchController.prototype.updateCurrentMatchIndex):
(WebInspector.SearchController.prototype.updateSearchLabel):
(WebInspector.SearchController.prototype.handleShortcut):
(WebInspector.SearchController.prototype._performSearch):
* inspector/front-end/Toolbar.js:
(WebInspector.Toolbar.createPanelToolbarItem.onToolbarItemClicked):
(WebInspector.Toolbar.createPanelToolbarItem):
* inspector/front-end/inspector.js:
(WebInspector.currentPanel):
(WebInspector._updateFocusedNode):
(WebInspector.windowResize):
(WebInspector.documentKeyDown):
(WebInspector.documentCanCopy):
(WebInspector.documentCopy):
(WebInspector.showPanel):
(WebInspector.startUserInitiatedDebugging):
(WebInspector.inspect):
(WebInspector._showAnchorLocationInPanel):
(WebInspector._toolbarItemClicked):
(WebInspector.PanelHistory.prototype.goBack):
(WebInspector.PanelHistory.prototype.goForward):

Source/WebKit/chromium:

* src/js/Tests.js:
(.TestSuite.prototype.showPanel):

LayoutTests:

* http/tests/inspector/resource-tree/resource-tree-test.js:
(initialize_ResourceTreeTest.InspectorTest.dumpResourcesTree):
* inspector/debugger/debugger-expand-scope.html:
* inspector/debugger/debugger-proto-property.html:
* inspector/storage-panel-dom-storage.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (95286 => 95287)


--- trunk/LayoutTests/ChangeLog	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/LayoutTests/ChangeLog	2011-09-16 12:55:32 UTC (rev 95287)
@@ -1,3 +1,18 @@
+2011-09-16  Ilya Tikhonovsky  <[email protected]>
+
+        Web Inspector: change WebInspector.currentPanel getter/setter to functions.
+        https://bugs.webkit.org/show_bug.cgi?id=68242
+
+        This is necessary for the panel switching performance tests.
+
+        Reviewed by Pavel Feldman.
+
+        * http/tests/inspector/resource-tree/resource-tree-test.js:
+        (initialize_ResourceTreeTest.InspectorTest.dumpResourcesTree):
+        * inspector/debugger/debugger-expand-scope.html:
+        * inspector/debugger/debugger-proto-property.html:
+        * inspector/storage-panel-dom-storage.html:
+
 2011-09-16  Balazs Kelemen  <[email protected]>
 
         [Qt][WK2] bot lucks mobility

Modified: trunk/LayoutTests/http/tests/inspector/resource-tree/resource-tree-test.js (95286 => 95287)


--- trunk/LayoutTests/http/tests/inspector/resource-tree/resource-tree-test.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/LayoutTests/http/tests/inspector/resource-tree/resource-tree-test.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -63,7 +63,7 @@
             dump(children[i], prefix + "    ");
     }
 
-    WebInspector.currentPanel = WebInspector.panels.resources;
+    WebInspector.setCurrentPanel(WebInspector.panels.resources);
     dump(WebInspector.panels.resources.resourcesListTreeElement, "");
 }
 

Modified: trunk/LayoutTests/inspector/debugger/debugger-expand-scope.html (95286 => 95287)


--- trunk/LayoutTests/inspector/debugger/debugger-expand-scope.html	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/LayoutTests/inspector/debugger/debugger-expand-scope.html	2011-09-16 12:55:32 UTC (rev 95287)
@@ -35,7 +35,7 @@
     {
         // Expand all but global scopes. Expanding global scope takes for too long
         // so we keep it collapsed.
-        var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections;
+        var sections = WebInspector.currentPanel().sidebarPanes.scopechain._sections;
         // global scope is always the last one.
         for (var i = 0; i < sections.length - 1; i++)
             sections[i].expand();

Modified: trunk/LayoutTests/inspector/debugger/debugger-proto-property.html (95286 => 95287)


--- trunk/LayoutTests/inspector/debugger/debugger-proto-property.html	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/LayoutTests/inspector/debugger/debugger-proto-property.html	2011-09-16 12:55:32 UTC (rev 95287)
@@ -30,7 +30,7 @@
 
     function step2(callFrames)
     {
-        var sections = WebInspector.currentPanel.sidebarPanes.scopechain._sections;
+        var sections = WebInspector.currentPanel().sidebarPanes.scopechain._sections;
         var localScope = sections[0].propertiesTreeOutline;
         var properties = [
             localScope, ["o", "__proto__", "__proto__"],

Modified: trunk/LayoutTests/inspector/storage-panel-dom-storage.html (95286 => 95287)


--- trunk/LayoutTests/inspector/storage-panel-dom-storage.html	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/LayoutTests/inspector/storage-panel-dom-storage.html	2011-09-16 12:55:32 UTC (rev 95287)
@@ -30,7 +30,7 @@
         if (storages) {
             for (var i = 0; i < storages.length; i++) {
                 var storage = storages[i];
-                WebInspector.currentPanel.showDOMStorage(storage);
+                WebInspector.currentPanel().showDOMStorage(storage);
                 InspectorTest.addResult("Did show: " + name(storage));
             }
         } else

Modified: trunk/Source/WebCore/ChangeLog (95286 => 95287)


--- trunk/Source/WebCore/ChangeLog	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/ChangeLog	2011-09-16 12:55:32 UTC (rev 95287)
@@ -1,3 +1,48 @@
+2011-09-16  Ilya Tikhonovsky  <[email protected]>
+
+        Web Inspector: change WebInspector.currentPanel getter/setter to functions.
+        https://bugs.webkit.org/show_bug.cgi?id=68242
+
+        This is necessary for the panel switching performance tests.
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/Drawer.js:
+        (WebInspector.Drawer.prototype.show.animationFinished):
+        (WebInspector.Drawer.prototype.show):
+        (WebInspector.Drawer.prototype.hide):
+        (WebInspector.Drawer.prototype._animateDrawerHeight.animationFinished):
+        (WebInspector.Drawer.prototype._animateDrawerHeight):
+        (WebInspector.Drawer.prototype._statusBarDragging):
+        * inspector/front-end/ElementsPanel.js:
+        (WebInspector.ElementsPanel.prototype.switchToAndFocus):
+        * inspector/front-end/ResourcesPanel.js:
+        (WebInspector.ResourcesPanel.prototype.showAnchorLocation):
+        * inspector/front-end/ScriptsPanel.js:
+        * inspector/front-end/SearchController.js:
+        (WebInspector.SearchController.prototype.updateSearchMatchesCount):
+        (WebInspector.SearchController.prototype.updateCurrentMatchIndex):
+        (WebInspector.SearchController.prototype.updateSearchLabel):
+        (WebInspector.SearchController.prototype.handleShortcut):
+        (WebInspector.SearchController.prototype._performSearch):
+        * inspector/front-end/Toolbar.js:
+        (WebInspector.Toolbar.createPanelToolbarItem.onToolbarItemClicked):
+        (WebInspector.Toolbar.createPanelToolbarItem):
+        * inspector/front-end/inspector.js:
+        (WebInspector.currentPanel):
+        (WebInspector._updateFocusedNode):
+        (WebInspector.windowResize):
+        (WebInspector.documentKeyDown):
+        (WebInspector.documentCanCopy):
+        (WebInspector.documentCopy):
+        (WebInspector.showPanel):
+        (WebInspector.startUserInitiatedDebugging):
+        (WebInspector.inspect):
+        (WebInspector._showAnchorLocationInPanel):
+        (WebInspector._toolbarItemClicked):
+        (WebInspector.PanelHistory.prototype.goBack):
+        (WebInspector.PanelHistory.prototype.goForward):
+
 2011-09-15  Pavel Feldman  <[email protected]>
 
         Web Inspector: rename Console.clearConsoleMessages to Console.clearMessages, brush up console domain doc.

Modified: trunk/Source/WebCore/inspector/front-end/Drawer.js (95286 => 95287)


--- trunk/Source/WebCore/inspector/front-end/Drawer.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/Drawer.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -122,8 +122,8 @@
 
         function animationFinished()
         {
-            if ("updateStatusBarItems" in WebInspector.currentPanel)
-                WebInspector.currentPanel.updateStatusBarItems();
+            if ("updateStatusBarItems" in WebInspector.currentPanel())
+                WebInspector.currentPanel().updateStatusBarItems();
             if (this.visibleView.afterShow)
                 this.visibleView.afterShow();
             delete this._animating;
@@ -160,8 +160,8 @@
         // like Elements in their updateStatusBarItems call will size things to fit the final location.
         this._mainStatusBar.style.setProperty("padding-left", (anchoredItems.offsetWidth - 1) + "px");
         document.body.removeStyleClass("drawer-visible");
-        if ("updateStatusBarItems" in WebInspector.currentPanel)
-            WebInspector.currentPanel.updateStatusBarItems();
+        if ("updateStatusBarItems" in WebInspector.currentPanel())
+            WebInspector.currentPanel().updateStatusBarItems();
         document.body.addStyleClass("drawer-visible");
 
         var animations = [
@@ -179,7 +179,7 @@
 
         function animationFinished()
         {
-            WebInspector.currentPanel.doResize();
+            WebInspector.currentPanel().doResize();
             this._mainStatusBar.insertBefore(anchoredItems, this._mainStatusBar.firstChild);
             this._mainStatusBar.style.removeProperty("padding-left");
 
@@ -293,7 +293,7 @@
 
         function animationFinished()
         {
-            WebInspector.currentPanel.doResize();
+            WebInspector.currentPanel().doResize();
             delete this._animating;
             delete this._currentAnimation;
             this.state = finalState;
@@ -343,8 +343,8 @@
 
         this._mainElement.style.bottom = height + "px";
         this.element.style.height = height + "px";
-        if (WebInspector.currentPanel)
-            WebInspector.currentPanel.doResize();
+        if (WebInspector.currentPanel())
+            WebInspector.currentPanel().doResize();
 
         event.preventDefault();
         event.stopPropagation();

Modified: trunk/Source/WebCore/inspector/front-end/ElementsPanel.js (95286 => 95287)


--- trunk/Source/WebCore/inspector/front-end/ElementsPanel.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/ElementsPanel.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -297,7 +297,7 @@
     {
         // Reset search restore.
         WebInspector.searchController.cancelSearch();
-        WebInspector.currentPanel = this;
+        WebInspector.setCurrentPanel(this);
         this.selectDOMNode(node, true);
     },
 

Modified: trunk/Source/WebCore/inspector/front-end/ResourcesPanel.js (95286 => 95287)


--- trunk/Source/WebCore/inspector/front-end/ResourcesPanel.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/ResourcesPanel.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -330,7 +330,7 @@
         if (resource.type === WebInspector.Resource.Type.XHR) {
             // Show XHRs in the network panel only.
             if (WebInspector.panels.network && WebInspector.panels.network.canShowAnchorLocation(anchor)) {
-                WebInspector.currentPanel = WebInspector.panels.network;
+                WebInspector.setCurrentPanel(WebInspector.panels.network);
                 WebInspector.panels.network.showAnchorLocation(anchor);
             }
             return;

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


--- trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -473,7 +473,7 @@
 
         this._updateDebuggerButtons();
 
-        WebInspector.currentPanel = this;
+        WebInspector.setCurrentPanel(this);
 
         this.sidebarPanes.callstack.update(callFrames, details);
         this.sidebarPanes.callstack.selectedCallFrame = this._presentationModel.selectedCallFrame;

Modified: trunk/Source/WebCore/inspector/front-end/SearchController.js (95286 => 95287)


--- trunk/Source/WebCore/inspector/front-end/SearchController.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/SearchController.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -44,23 +44,23 @@
     updateSearchMatchesCount: function(matches, panel)
     {
         if (!panel)
-            panel = WebInspector.currentPanel;
+            panel = WebInspector.currentPanel();
 
         panel.currentSearchMatches = matches;
 
-        if (panel === WebInspector.currentPanel)
-            this._updateSearchMatchesCountAndCurrentMatchIndex(WebInspector.currentPanel.currentQuery && matches);
+        if (panel === WebInspector.currentPanel())
+            this._updateSearchMatchesCountAndCurrentMatchIndex(WebInspector.currentPanel().currentQuery && matches);
     },
 
     updateCurrentMatchIndex: function(currentMatchIndex, panel)
     {
-        if (panel === WebInspector.currentPanel)
+        if (panel === WebInspector.currentPanel())
             this._updateSearchMatchesCountAndCurrentMatchIndex(panel.currentSearchMatches, currentMatchIndex);
     },
 
     updateSearchLabel: function()
     {
-        var panelName = WebInspector.currentPanel && WebInspector.currentPanel.toolbarItemLabel;
+        var panelName = WebInspector.currentPanel() && WebInspector.currentPanel().toolbarItemLabel;
         if (!panelName)
             return;
         var newLabel = WebInspector.UIString("Search %s", panelName);
@@ -104,7 +104,7 @@
                 break;
 
             case "U+0047": // G key
-                var currentPanel = WebInspector.currentPanel;
+                var currentPanel = WebInspector.currentPanel();
 
                 if (isMac && event.metaKey && !event.ctrlKey && !event.altKey) {
                     if (event.shiftKey) {
@@ -125,7 +125,7 @@
         if (!this._currentQuery)
             return;
 
-        panel = WebInspector.currentPanel;
+        panel = WebInspector.currentPanel();
         if (panel.performSearch) {
             function performPanelSearch()
             {
@@ -256,7 +256,7 @@
             return;
         }
 
-        var currentPanel = WebInspector.currentPanel;
+        var currentPanel = WebInspector.currentPanel();
         if (!repeatSearch && query === currentPanel.currentQuery && currentPanel.currentQuery === this._currentQuery) {
             // When this is the same query and a forced search, jump to the next
             // search result for a good user experience.

Modified: trunk/Source/WebCore/inspector/front-end/Toolbar.js (95286 => 95287)


--- trunk/Source/WebCore/inspector/front-end/Toolbar.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/Toolbar.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -153,7 +153,7 @@
     function onToolbarItemClicked()
     {
         WebInspector.toolbar._updateDropdownButtonAndHideDropdown();
-        WebInspector.currentPanel = panel;
+        WebInspector.setCurrentPanel(panel);
     }
     toolbarItem.addEventListener("click", onToolbarItemClicked);
 
@@ -162,7 +162,7 @@
     if ("toolbarItemLabel" in panel)
         toolbarItem.createChild("div", "toolbar-label").textContent = panel.toolbarItemLabel;
 
-    if (panel === WebInspector.currentPanel)
+    if (panel === WebInspector.currentPanel())
         toolbarItem.addStyleClass("toggled-on");
 
     return toolbarItem;

Modified: trunk/Source/WebCore/inspector/front-end/inspector.js (95286 => 95287)


--- trunk/Source/WebCore/inspector/front-end/inspector.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebCore/inspector/front-end/inspector.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -118,12 +118,12 @@
             this._previousFocusElement.blur();
     },
 
-    get currentPanel()
+    currentPanel: function()
     {
         return this._currentPanel;
     },
 
-    set currentPanel(x)
+    setCurrentPanel: function(x)
     {
         if (this._currentPanel === x)
             return;
@@ -402,7 +402,7 @@
 
     _updateFocusedNode: function(nodeId)
     {
-        this.currentPanel = this.panels.elements;
+        this.setCurrentPanel(this.panels.elements);
         this.panels.elements.updateFocusedNode(nodeId);
     },
 
@@ -605,8 +605,8 @@
 
 WebInspector.windowResize = function(event)
 {
-    if (this.currentPanel)
-        this.currentPanel.doResize();
+    if (this.currentPanel())
+        this.currentPanel().doResize();
     this.drawer.doResize();
     this.toolbar.resize();
 }
@@ -756,8 +756,8 @@
         }
     }
 
-    if (this.currentPanel) {
-        this.currentPanel.handleShortcut(event);
+    if (this.currentPanel()) {
+        this.currentPanel().handleShortcut(event);
         if (event.handled) {
             event.preventDefault();
             return;
@@ -808,7 +808,7 @@
                 var isRotateLeft = event.ctrlKey && !event.shiftKey && !event.metaKey && !event.altKey;
 
             if (isRotateLeft) {
-                var index = this.panelOrder.indexOf(this.currentPanel);
+                var index = this.panelOrder.indexOf(this.currentPanel());
                 index = (index === 0) ? this.panelOrder.length - 1 : index - 1;
                 this.panelOrder[index].toolbarItem.click();
                 event.preventDefault();
@@ -825,7 +825,7 @@
                 var isRotateRight = event.ctrlKey && !event.shiftKey && !event.metaKey && !event.altKey;
 
             if (isRotateRight) {
-                var index = this.panelOrder.indexOf(this.currentPanel);
+                var index = this.panelOrder.indexOf(this.currentPanel());
                 index = (index + 1) % this.panelOrder.length;
                 this.panelOrder[index].toolbarItem.click();
                 event.preventDefault();
@@ -850,14 +850,14 @@
 
 WebInspector.documentCanCopy = function(event)
 {
-    if (this.currentPanel && this.currentPanel.handleCopyEvent)
+    if (this.currentPanel() && this.currentPanel().handleCopyEvent)
         event.preventDefault();
 }
 
 WebInspector.documentCopy = function(event)
 {
-    if (this.currentPanel && this.currentPanel.handleCopyEvent)
-        this.currentPanel.handleCopyEvent(event);
+    if (this.currentPanel() && this.currentPanel().handleCopyEvent)
+        this.currentPanel().handleCopyEvent(event);
 }
 
 WebInspector.contextMenuEventFired = function(event)
@@ -1019,12 +1019,12 @@
         else
             panel = "elements";
     }
-    this.currentPanel = this.panels[panel];
+    this.setCurrentPanel(this.panels[panel]);
 }
 
 WebInspector.startUserInitiatedDebugging = function()
 {
-    this.currentPanel = this.panels.scripts;
+    this.setCurrentPanel(this.panels.scripts);
     WebInspector.debuggerModel.enableDebugger();
 }
 
@@ -1160,10 +1160,10 @@
     }
 
     if (hints.databaseId) {
-        WebInspector.currentPanel = WebInspector.panels.resources;
+        WebInspector.setCurrentPanel(WebInspector.panels.resources);
         WebInspector.panels.resources.selectDatabase(hints.databaseId);
     } else if (hints.domStorageId) {
-        WebInspector.currentPanel = WebInspector.panels.resources;
+        WebInspector.setCurrentPanel(WebInspector.panels.resources);
         WebInspector.panels.resources.selectDOMStorage(hints.domStorageId);
     }
 
@@ -1220,10 +1220,10 @@
         anchor.addStyleClass("webkit-html-resource-link");
     }
 
-    this.currentPanel = panel;
+    this.setCurrentPanel(panel);
     if (this.drawer)
         this.drawer.immediatelyFinishAnimation();
-    this.currentPanel.showAnchorLocation(anchor);
+    this.currentPanel().showAnchorLocation(anchor);
     return true;
 }
 
@@ -1606,7 +1606,7 @@
 WebInspector._toolbarItemClicked = function(event)
 {
     var toolbarItem = event.currentTarget;
-    this.currentPanel = toolbarItem.panel;
+    this.setCurrentPanel(toolbarItem.panel);
 }
 
 WebInspector.PanelHistory = function()
@@ -1624,7 +1624,7 @@
     goBack: function()
     {
         this._inHistory = true;
-        WebInspector.currentPanel = WebInspector.panels[this._history[--this._historyIterator]];
+        WebInspector.setCurrentPanel(WebInspector.panels[this._history[--this._historyIterator]]);
         delete this._inHistory;
     },
 
@@ -1636,7 +1636,7 @@
     goForward: function()
     {
         this._inHistory = true;
-        WebInspector.currentPanel = WebInspector.panels[this._history[++this._historyIterator]];
+        WebInspector.setCurrentPanel(WebInspector.panels[this._history[++this._historyIterator]]);
         delete this._inHistory;
     },
 

Modified: trunk/Source/WebKit/chromium/ChangeLog (95286 => 95287)


--- trunk/Source/WebKit/chromium/ChangeLog	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebKit/chromium/ChangeLog	2011-09-16 12:55:32 UTC (rev 95287)
@@ -1,3 +1,15 @@
+2011-09-16  Ilya Tikhonovsky  <[email protected]>
+
+        Web Inspector: change WebInspector.currentPanel getter/setter to functions.
+        https://bugs.webkit.org/show_bug.cgi?id=68242
+
+        This is necessary for the panel switching performance tests.
+
+        Reviewed by Pavel Feldman.
+
+        * src/js/Tests.js:
+        (.TestSuite.prototype.showPanel):
+
 2011-09-15  Adam Barth  <[email protected]>
 
         Sigh.  Missed this one.

Modified: trunk/Source/WebKit/chromium/src/js/Tests.js (95286 => 95287)


--- trunk/Source/WebKit/chromium/src/js/Tests.js	2011-09-16 12:42:20 UTC (rev 95286)
+++ trunk/Source/WebKit/chromium/src/js/Tests.js	2011-09-16 12:55:32 UTC (rev 95287)
@@ -177,7 +177,7 @@
     var toolbar = document.getElementById("toolbar");
     var button = toolbar.getElementsByClassName(panelName)[0];
     button.click();
-    this.assertEquals(WebInspector.panels[panelName], WebInspector.currentPanel);
+    this.assertEquals(WebInspector.panels[panelName], WebInspector.currentPanel());
 };
 
 
@@ -252,7 +252,7 @@
 TestSuite.prototype.testScriptsTabIsPopulatedOnInspectedPageRefresh = function()
 {
     var test = this;
-    this.assertEquals(WebInspector.panels.elements, WebInspector.currentPanel, "Elements panel should be current one.");
+    this.assertEquals(WebInspector.panels.elements, WebInspector.currentPanel(), "Elements panel should be current one.");
 
     this.addSniffer(WebInspector.panels.scripts, "reset", waitUntilScriptIsParsed);
 
@@ -364,8 +364,8 @@
 
 
     // Script execution can already be paused.
-    if (WebInspector.currentPanel.paused) {
-        var callFrame = WebInspector.currentPanel._presentationModel.selectedCallFrame;
+    if (WebInspector.currentPanel().paused) {
+        var callFrame = WebInspector.currentPanel()._presentationModel.selectedCallFrame;
         this.assertEquals(expectations.functionsOnStack[0], callFrame.functionName);
         var callbackInvoked = false;
         this._checkSourceFrameWhenLoaded(expectations, function() {
@@ -592,7 +592,7 @@
         scriptResource = options[pageScriptIndex].representedObject;
 
         // Current panel is "Scripts".
-        WebInspector.currentPanel._showScriptOrResource(scriptResource);
+        WebInspector.currentPanel()._showScriptOrResource(scriptResource);
         test.assertEquals(pageScriptIndex, scriptSelect.selectedIndex, "Unexpected selected option index.");
     }
 
@@ -711,7 +711,7 @@
 {
     var test = this;
 
-    var frame = WebInspector.currentPanel.visibleView;
+    var frame = WebInspector.currentPanel().visibleView;
 
     if (frame._textViewer)
         checkExecLine();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to