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

Unified Diff: Source/devtools/front_end/layers/LayerDetailsView.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/LayerDetailsView.js
diff --git a/Source/devtools/front_end/layers/LayerDetailsView.js b/Source/devtools/front_end/layers/LayerDetailsView.js
index e57546dd31d295a95f175d651e314139054156fb..b32ca347d725f27aa7b0b1ecc0a7c3a4ccf81b90 100644
--- a/Source/devtools/front_end/layers/LayerDetailsView.js
+++ b/Source/devtools/front_end/layers/LayerDetailsView.js
@@ -181,11 +181,11 @@ WebInspector.LayerDetailsView.prototype = {
this._compositingReasonsCell.textContent = "n/a";
return;
}
- var fragment = document.createDocumentFragment();
+ var fragment = createDocumentFragment();
for (var i = 0; i < compositingReasons.length; ++i) {
if (i)
fragment.createTextChild(",");
- var span = document.createElement("span");
+ var span = createElement("span");
span.title = WebInspector.LayerDetailsView.CompositingReasonDetail[compositingReasons[i]] || "";
span.textContent = compositingReasons[i];
fragment.appendChild(span);
« no previous file with comments | « Source/devtools/front_end/extensions/ExtensionView.js ('k') | Source/devtools/front_end/layers/LayerTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698