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/sources/FilteredItemSelectionDialog.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/sources/FilteredItemSelectionDialog.js
diff --git a/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js b/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js
index 3532a8b2fbdb7f7e296f40143b6b8c8e320f9570..52442638a1aa5f58666f308e77960003f69803c1 100644
--- a/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js
+++ b/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js
@@ -38,7 +38,7 @@ WebInspector.FilteredItemSelectionDialog = function(delegate)
{
WebInspector.DialogDelegate.call(this);
- this.element = document.createElement("div");
+ this.element = createElement("div");
this.element.className = "filtered-item-list-dialog";
this.element.addEventListener("keydown", this._onKeyDown.bind(this), false);
this.element.appendChild(WebInspector.View.createStyleElement("filteredItemSelectionDialog.css"));
@@ -139,7 +139,7 @@ WebInspector.FilteredItemSelectionDialog.prototype = {
*/
_createItemElement: function(index)
{
- var itemElement = document.createElement("div");
+ var itemElement = createElement("div");
itemElement.className = "filtered-item-list-dialog-item " + (this._renderAsTwoRows ? "two-rows" : "one-row");
itemElement._titleElement = itemElement.createChild("div", "filtered-item-list-dialog-title");
itemElement._subtitleElement = itemElement.createChild("div", "filtered-item-list-dialog-subtitle");

Powered by Google App Engine
This is Rietveld 408576698