Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: Source/WebCore/inspector/front-end/Drawer.js

Issue 8381041: Merge 98105 - Web Inspector: Advanced search is working very slowly and does not show searching p... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698