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

Unified Diff: Source/devtools/front_end/SidebarTreeElement.js

Issue 181433002: DevTools: Replace Apple styled spinner icon with Chromium one. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed ::before and ::after pseudos box-sizing change Created 6 years, 10 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
« no previous file with comments | « Source/devtools/front_end/Images/spinnerSelected.gif ('k') | Source/devtools/front_end/canvasProfiler.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/SidebarTreeElement.js
diff --git a/Source/devtools/front_end/SidebarTreeElement.js b/Source/devtools/front_end/SidebarTreeElement.js
index c14db7f07922db4f5cbd84a00dc65896bc68af14..77d97ae09a1d8e1d7471809a9d783622dcc96108 100644
--- a/Source/devtools/front_end/SidebarTreeElement.js
+++ b/Source/devtools/front_end/SidebarTreeElement.js
@@ -53,10 +53,7 @@ WebInspector.SidebarSectionTreeElement.prototype = {
this._smallChildren = x;
- if (this._smallChildren)
- this._childrenListNode.classList.add("small");
- else
- this._childrenListNode.classList.remove("small");
+ this._childrenListNode.classList.toggle("small", this._smallChildren);
},
onattach: function()
@@ -91,7 +88,7 @@ WebInspector.SidebarTreeElement = function(className, title, subtitle, represent
this.disclosureButton.className = "disclosure-button";
}
- this.iconElement = document.createElementWithClass("img", "icon");
+ this.iconElement = document.createElementWithClass("div", "icon");
this.statusElement = document.createElementWithClass("div", "status");
this.titlesElement = document.createElementWithClass("div", "titles");
@@ -114,13 +111,8 @@ WebInspector.SidebarTreeElement.prototype = {
set small(x)
{
this._small = x;
-
- if (this._listItemNode) {
- if (this._small)
- this._listItemNode.classList.add("small");
- else
- this._listItemNode.classList.remove("small");
- }
+ if (this._listItemNode)
+ this._listItemNode.classList.toggle("small", this._small);
},
get mainTitle()
@@ -147,10 +139,7 @@ WebInspector.SidebarTreeElement.prototype = {
set wait(x)
{
- if (x)
- this._listItemNode.classList.add("wait");
- else
- this._listItemNode.classList.remove("wait");
+ this._listItemNode.classList.toggle("wait", x);
},
refreshTitles: function()
« no previous file with comments | « Source/devtools/front_end/Images/spinnerSelected.gif ('k') | Source/devtools/front_end/canvasProfiler.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698