Index: Source/devtools/front_end/layers/LayerTreeOutline.js |
diff --git a/Source/devtools/front_end/layers/LayerTreeOutline.js b/Source/devtools/front_end/layers/LayerTreeOutline.js |
index 0c38ab006288602e4b7d9801df75e6f31e1a56b1..5a9e35a8d662241dde9235bedaa6a06c66161af5 100644 |
--- a/Source/devtools/front_end/layers/LayerTreeOutline.js |
+++ b/Source/devtools/front_end/layers/LayerTreeOutline.js |
@@ -185,7 +185,7 @@ WebInspector.LayerTreeElement = function(tree, layer) |
WebInspector.LayerTreeElement.prototype = { |
onattach: function() |
{ |
- var selection = document.createElement("div"); |
+ var selection = createElement("div"); |
selection.className = "selection"; |
this.listItemElement.insertBefore(selection, this.listItemElement.firstChild); |
}, |
@@ -194,7 +194,7 @@ WebInspector.LayerTreeElement.prototype = { |
{ |
var layer = /** @type {!WebInspector.Layer} */ (this.representedObject); |
var node = layer.nodeForSelfOrAncestor(); |
- var title = document.createDocumentFragment(); |
+ var title = createDocumentFragment(); |
title.createChild("div", "selection"); |
title.createTextChild(node ? WebInspector.DOMPresentationUtils.simpleSelector(node) : "#" + layer.id()); |
var details = title.createChild("span", "dimmed"); |