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

Unified Diff: Source/devtools/front_end/extensions/ExtensionAuditCategory.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/extensions/ExtensionAuditCategory.js
diff --git a/Source/devtools/front_end/extensions/ExtensionAuditCategory.js b/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
index e2f7baaeed3081e7bdb7f456390fa4293c445170..ddbb45cf29a5296b77c43de9e61eff3c2841237e 100644
--- a/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
+++ b/Source/devtools/front_end/extensions/ExtensionAuditCategory.js
@@ -181,7 +181,7 @@ WebInspector.ExtensionAuditFormatters = {
*/
object: function(expression, title, evaluateOptions)
{
- var parentElement = document.createElement("div");
+ var parentElement = createElement("div");
function onEvaluate(remoteObject)
{
var section = new WebInspector.ObjectPropertiesSection(remoteObject, title);
@@ -201,7 +201,7 @@ WebInspector.ExtensionAuditFormatters = {
*/
node: function(expression, evaluateOptions)
{
- var parentElement = document.createElement("div");
+ var parentElement = createElement("div");
this.evaluate(expression, evaluateOptions, onEvaluate);
/**
« no previous file with comments | « Source/devtools/front_end/elements/StylesSidebarPane.js ('k') | Source/devtools/front_end/extensions/ExtensionPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698