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

Unified Diff: Source/devtools/front_end/components/BreakpointsSidebarPaneBase.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/components/BreakpointsSidebarPaneBase.js
diff --git a/Source/devtools/front_end/components/BreakpointsSidebarPaneBase.js b/Source/devtools/front_end/components/BreakpointsSidebarPaneBase.js
index 8fe32f699103f6da56794524da16bf656f2f94ef..21363853e095c58e4ab68f8f115416a3e5deba75 100644
--- a/Source/devtools/front_end/components/BreakpointsSidebarPaneBase.js
+++ b/Source/devtools/front_end/components/BreakpointsSidebarPaneBase.js
@@ -31,6 +31,7 @@
/**
* @constructor
* @extends {WebInspector.SidebarPane}
+ * @param {string} title
*/
WebInspector.BreakpointsSidebarPaneBase = function(title)
{
@@ -44,7 +45,7 @@ WebInspector.BreakpointsSidebarPaneBase = function(title)
this.emptyElement.className = "info";
this.emptyElement.textContent = WebInspector.UIString("No Breakpoints");
- this.bodyElement.appendChild(this.emptyElement);
+ this.element.appendChild(this.emptyElement);
}
WebInspector.BreakpointsSidebarPaneBase.prototype = {
@@ -59,8 +60,8 @@ WebInspector.BreakpointsSidebarPaneBase.prototype = {
this.listElement.insertBefore(element, beforeNode);
} else {
if (!this.listElement.firstChild) {
- this.bodyElement.removeChild(this.emptyElement);
- this.bodyElement.appendChild(this.listElement);
+ this.element.removeChild(this.emptyElement);
+ this.element.appendChild(this.listElement);
}
this.listElement.appendChild(element);
}
@@ -74,8 +75,8 @@ WebInspector.BreakpointsSidebarPaneBase.prototype = {
{
this.listElement.removeChild(element);
if (!this.listElement.firstChild) {
- this.bodyElement.removeChild(this.listElement);
- this.bodyElement.appendChild(this.emptyElement);
+ this.element.removeChild(this.listElement);
+ this.element.appendChild(this.emptyElement);
}
},
@@ -86,8 +87,8 @@ WebInspector.BreakpointsSidebarPaneBase.prototype = {
{
this.listElement.removeChildren();
if (this.listElement.parentElement) {
- this.bodyElement.removeChild(this.listElement);
- this.bodyElement.appendChild(this.emptyElement);
+ this.element.removeChild(this.listElement);
+ this.element.appendChild(this.emptyElement);
}
},
« no previous file with comments | « Source/devtools/front_end/audits/auditsPanel.css ('k') | Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698