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

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

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/devtools/front_end/ui/SidebarPane.js ('k') | Source/devtools/front_end/ui/SoftContextMenu.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/SidebarTreeElement.js
diff --git a/Source/devtools/front_end/ui/SidebarTreeElement.js b/Source/devtools/front_end/ui/SidebarTreeElement.js
index 4d986349da9b61c918a86ddd74514a9298656b7d..f2859ccdf458383c73b1b89865c392f4d41bf32c 100644
--- a/Source/devtools/front_end/ui/SidebarTreeElement.js
+++ b/Source/devtools/front_end/ui/SidebarTreeElement.js
@@ -84,11 +84,11 @@ WebInspector.SidebarTreeElement = function(className, title, subtitle, represent
TreeElement.call(this, "", representedObject, hasChildren);
if (hasChildren)
- this.disclosureButton = document.createElementWithClass("button", "disclosure-button");
+ this.disclosureButton = createElementWithClass("button", "disclosure-button");
- this.iconElement = document.createElementWithClass("div", "icon");
- this.statusElement = document.createElementWithClass("div", "status");
- this.titlesElement = document.createElementWithClass("div", "titles");
+ this.iconElement = createElementWithClass("div", "icon");
+ this.statusElement = createElementWithClass("div", "status");
+ this.titlesElement = createElementWithClass("div", "titles");
this.titleContainer = this.titlesElement.createChild("span", "title-container");
this.titleElement = this.titleContainer.createChild("span", "title");
« no previous file with comments | « Source/devtools/front_end/ui/SidebarPane.js ('k') | Source/devtools/front_end/ui/SoftContextMenu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698