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

Unified Diff: Source/devtools/front_end/components/OverviewGrid.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/OverviewGrid.js
diff --git a/Source/devtools/front_end/components/OverviewGrid.js b/Source/devtools/front_end/components/OverviewGrid.js
index ea723d5457d691f1053350e206e2774461c1bdf4..660535302ac2063d4d18dd9e97740face4dd763d 100644
--- a/Source/devtools/front_end/components/OverviewGrid.js
+++ b/Source/devtools/front_end/components/OverviewGrid.js
@@ -34,7 +34,7 @@
*/
WebInspector.OverviewGrid = function(prefix)
{
- this.element = document.createElement("div");
+ this.element = createElement("div");
this.element.id = prefix + "-overview-container";
this._grid = new WebInspector.TimelineGrid();
@@ -452,7 +452,7 @@ WebInspector.OverviewGrid.WindowSelector = function(parent, position)
{
this._startPosition = position;
this._width = parent.offsetWidth;
- this._windowSelector = document.createElement("div");
+ this._windowSelector = createElement("div");
this._windowSelector.className = "overview-grid-window-selector";
this._windowSelector.style.left = this._startPosition + "px";
this._windowSelector.style.right = this._width - this._startPosition + "px";

Powered by Google App Engine
This is Rietveld 408576698