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

Unified Diff: Source/devtools/front_end/elements/MetricsSidebarPane.js

Issue 1172643002: DevTools: migrate sidebar pane's titleElement to use Toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: only using latin1 in css Created 5 years, 6 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/devtools/front_end/elements/MetricsSidebarPane.js
diff --git a/Source/devtools/front_end/elements/MetricsSidebarPane.js b/Source/devtools/front_end/elements/MetricsSidebarPane.js
index 5bba562f63c82ff7af3a75923e2aa1a6b2ff34de..62c3247c50af905680b446e161c73dc41d3d8835 100644
--- a/Source/devtools/front_end/elements/MetricsSidebarPane.js
+++ b/Source/devtools/front_end/elements/MetricsSidebarPane.js
@@ -54,7 +54,7 @@ WebInspector.MetricsSidebarPane.prototype = {
var node = this.node();
var cssModel = this.cssModel();
if (!node || node.nodeType() !== Node.ELEMENT_NODE || !cssModel) {
- this.bodyElement.removeChildren();
+ this.element.removeChildren();
finishedCallback();
return;
}
@@ -303,8 +303,8 @@ WebInspector.MetricsSidebarPane.prototype = {
metricsElement.appendChild(previousBox);
metricsElement.addEventListener("mouseover", this._highlightDOMNode.bind(this, false, "all"), false);
- this.bodyElement.removeChildren();
- this.bodyElement.appendChild(metricsElement);
+ this.element.removeChildren();
+ this.element.appendChild(metricsElement);
},
startEditing: function(targetElement, box, styleProperty, computedStyle)
« no previous file with comments | « Source/devtools/front_end/elements/EventListenersWidget.js ('k') | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698