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

Unified Diff: Source/devtools/front_end/ui/View.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/UIUtils.js ('k') | Source/devtools/front_end/ui/ViewportControl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/View.js
diff --git a/Source/devtools/front_end/ui/View.js b/Source/devtools/front_end/ui/View.js
index 410e5ec159fb3c3972fd971b3a05fbc51456584e..a217fe8433000567e4246719b109369cbccd5ae9 100644
--- a/Source/devtools/front_end/ui/View.js
+++ b/Source/devtools/front_end/ui/View.js
@@ -30,7 +30,7 @@
*/
WebInspector.View = function()
{
- this.element = document.createElementWithClass("div", "view");
+ this.element = createElementWithClass("div", "view");
this.element.__view = this;
this._visible = true;
this._isRoot = false;
@@ -59,7 +59,7 @@ WebInspector.View.createStyleElement = function(cssFile)
content = loadResource(cssFile) + WebInspector.View._buildSourceURL(cssFile)
WebInspector.View._cssFileToContent[cssFile] = content;
}
- var styleElement = document.createElement("style");
+ var styleElement = createElement("style");
styleElement.type = "text/css";
styleElement.textContent = content;
return styleElement;
« no previous file with comments | « Source/devtools/front_end/ui/UIUtils.js ('k') | Source/devtools/front_end/ui/ViewportControl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698