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

Unified Diff: Source/devtools/front_end/layers/LayerTreeOutline.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/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");
« no previous file with comments | « Source/devtools/front_end/layers/LayerDetailsView.js ('k') | Source/devtools/front_end/main/OverridesView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698