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

Unified Diff: Source/devtools/front_end/audits/AuditsPanel.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/audits/AuditsPanel.js
diff --git a/Source/devtools/front_end/audits/AuditsPanel.js b/Source/devtools/front_end/audits/AuditsPanel.js
index 590c019a05af4a4985571431fb9c4a05394337e7..f6b32a8a9195f4179b849075dc7ba9e293e5534f 100644
--- a/Source/devtools/front_end/audits/AuditsPanel.js
+++ b/Source/devtools/front_end/audits/AuditsPanel.js
@@ -427,12 +427,12 @@ WebInspector.AuditRuleResult.prototype = {
addFormatted: function(format, vararg)
{
var substitutions = Array.prototype.slice.call(arguments, 1);
- var fragment = document.createDocumentFragment();
+ var fragment = createDocumentFragment();
function append(a, b)
{
if (!(b instanceof Node))
- b = document.createTextNode(b);
+ b = createTextNode(b);
a.appendChild(b);
return a;
}
« no previous file with comments | « Source/devtools/front_end/audits/AuditResultView.js ('k') | Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698