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

Unified Diff: Source/devtools/front_end/components/Section.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
Index: Source/devtools/front_end/components/Section.js
diff --git a/Source/devtools/front_end/components/Section.js b/Source/devtools/front_end/components/Section.js
index 787fd8b23b9fed561320da5059fe49e66d6cbef1..1ce317b0e9c2257ee1f9308799e808d2a8cd7677 100644
--- a/Source/devtools/front_end/components/Section.js
+++ b/Source/devtools/front_end/components/Section.js
@@ -34,17 +34,17 @@
*/
WebInspector.Section = function(title, subtitle)
{
- this.element = document.createElement("div");
+ this.element = createElement("div");
this.element.className = "section";
this.element._section = this;
- this.headerElement = document.createElement("div");
+ this.headerElement = createElement("div");
this.headerElement.className = "header";
- this.titleElement = document.createElement("div");
+ this.titleElement = createElement("div");
this.titleElement.className = "title";
- this.subtitleElement = document.createElement("div");
+ this.subtitleElement = createElement("div");
this.subtitleElement.className = "subtitle";
this.headerElement.appendChild(this.subtitleElement);
« no previous file with comments | « Source/devtools/front_end/components/PropertiesSection.js ('k') | Source/devtools/front_end/components/ShortcutsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698