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"); |