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

Unified Diff: Source/devtools/front_end/ui/ShowMoreDataGridNode.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/SettingsUI.js ('k') | Source/devtools/front_end/ui/SidebarPane.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/ShowMoreDataGridNode.js
diff --git a/Source/devtools/front_end/ui/ShowMoreDataGridNode.js b/Source/devtools/front_end/ui/ShowMoreDataGridNode.js
index e8420fce60f4c7937a37a3e26da2e6c3abe55502..464b2c23be815344c72063ea9a138f02208741ab 100644
--- a/Source/devtools/front_end/ui/ShowMoreDataGridNode.js
+++ b/Source/devtools/front_end/ui/ShowMoreDataGridNode.js
@@ -44,16 +44,16 @@ WebInspector.ShowMoreDataGridNode = function(callback, startPosition, endPositio
this._endPosition = endPosition;
this._chunkSize = chunkSize;
- this.showNext = document.createElement("button");
+ this.showNext = createElement("button");
this.showNext.setAttribute("type", "button");
this.showNext.addEventListener("click", this._showNextChunk.bind(this), false);
this.showNext.textContent = WebInspector.UIString("Show %d before", this._chunkSize);
- this.showAll = document.createElement("button");
+ this.showAll = createElement("button");
this.showAll.setAttribute("type", "button");
this.showAll.addEventListener("click", this._showAll.bind(this), false);
- this.showLast = document.createElement("button");
+ this.showLast = createElement("button");
this.showLast.setAttribute("type", "button");
this.showLast.addEventListener("click", this._showLastChunk.bind(this), false);
this.showLast.textContent = WebInspector.UIString("Show %d after", this._chunkSize);
« no previous file with comments | « Source/devtools/front_end/ui/SettingsUI.js ('k') | Source/devtools/front_end/ui/SidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698