Index: Source/WebCore/inspector/front-end/Drawer.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/Drawer.js (revision 98335) |
+++ Source/WebCore/inspector/front-end/Drawer.js (working copy) |
@@ -74,6 +74,8 @@ |
show: function(view, animationType) |
{ |
this.immediatelyFinishAnimation(); |
+ if (this._view && this._view.counterElement) |
+ this._view.counterElement.parentNode.removeChild(this._view.counterElement); |
var drawerWasVisible = this.visible; |
@@ -89,6 +91,9 @@ |
for (var i = 0; i < statusBarItems.length; ++i) |
this._viewStatusBar.appendChild(statusBarItems[i]); |
+ if (this._view.counterElement) |
+ this._counters.insertBefore(this._view.counterElement, this._counters.firstChild); |
+ |
document.body.addStyleClass("drawer-visible"); |
this._view.show(this._drawerContentsElement); |
@@ -114,7 +119,7 @@ |
this._currentPanelCounters.parentNode.removeChild(this._currentPanelCounters); |
this._mainStatusBar.appendChild(this._currentPanelCounters); |
} |
- |
+ |
function animationFinished() |
{ |
WebInspector.currentPanel().statusBarResized(); |
@@ -169,6 +174,9 @@ |
this._mainStatusBar.insertBefore(anchoredItems, this._mainStatusBar.firstChild); |
this._mainStatusBar.style.removeProperty("padding-left"); |
+ if (this._view.counterElement) |
+ this._view.counterElement.parentNode.removeChild(this._view.counterElement); |
+ |
if (this._currentPanelCounters) { |
this._currentPanelCounters.setAttribute("style", null); |
this._currentPanelCounters.parentNode.removeChild(this._currentPanelCounters); |