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

Unified Diff: Source/devtools/front_end/elements/ElementsPanel.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/ElementsPanel.js
diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
index 66fb43b15d50e88b7088aeec376920e264d64e4e..b3941ee49b375b38e7a594fea6da8daa1d4441f1 100644
--- a/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/Source/devtools/front_end/elements/ElementsPanel.js
@@ -895,7 +895,7 @@ WebInspector.ElementsPanel.prototype = {
computedPane.element.classList.add("composite");
computedPane.element.classList.add("fill");
- computedPane.bodyElement.classList.add("metrics-and-computed");
+ computedPane.element.classList.add("metrics-and-computed");
var matchedStylePanesWrapper = createElement("div");
matchedStylePanesWrapper.className = "style-panes-wrapper";
@@ -942,7 +942,7 @@ WebInspector.ElementsPanel.prototype = {
compositePane.element.classList.add("fill");
var splitWidget = new WebInspector.SplitWidget(true, true, "stylesPaneSplitViewState", 215);
- splitWidget.show(compositePane.bodyElement);
+ splitWidget.show(compositePane.element);
var vbox1 = new WebInspector.VBox();
vbox1.element.appendChild(matchedStylePanesWrapper);
@@ -960,15 +960,15 @@ WebInspector.ElementsPanel.prototype = {
var stylesPane = new WebInspector.SidebarPane(this.sidebarPanes.styles.title());
stylesPane.element.classList.add("composite");
stylesPane.element.classList.add("fill");
- stylesPane.bodyElement.classList.add("metrics-and-styles");
+ stylesPane.element.classList.add("metrics-and-styles");
- stylesPane.bodyElement.appendChild(matchedStylePanesWrapper);
- computedPane.bodyElement.appendChild(computedStylePanesWrapper);
+ stylesPane.element.appendChild(matchedStylePanesWrapper);
+ computedPane.element.appendChild(computedStylePanesWrapper);
this.sidebarPaneView.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, tabSelected, this);
- stylesPane.bodyElement.appendChild(this._matchedStylesFilterBoxContainer);
- computedPane.bodyElement.appendChild(this._computedStylesFilterBoxContainer);
+ stylesPane.element.appendChild(this._matchedStylesFilterBoxContainer);
+ computedPane.element.appendChild(this._computedStylesFilterBoxContainer);
this.sidebarPaneView.addPane(stylesPane);
this.sidebarPaneView.addPane(computedPane);
@@ -976,7 +976,6 @@ WebInspector.ElementsPanel.prototype = {
this.sidebarPanes.styles.show(matchedStylePanesWrapper);
this.sidebarPanes.computedStyle.show(computedStylePanesWrapper);
- matchedStylePanesWrapper.appendChild(this.sidebarPanes.styles.titleElement);
showMetrics.call(this, vertically);
this.sidebarPanes.platformFonts.show(computedStylePanesWrapper);

Powered by Google App Engine
This is Rietveld 408576698