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

Unified Diff: Source/devtools/front_end/extensions/ExtensionPanel.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/ExtensionPanel.js
diff --git a/Source/devtools/front_end/extensions/ExtensionPanel.js b/Source/devtools/front_end/extensions/ExtensionPanel.js
index 395fa532b6db18ab00190ef12e3216caab1611f9..dd418f26b4707d87b50b25afa784909d97132364 100644
--- a/Source/devtools/front_end/extensions/ExtensionPanel.js
+++ b/Source/devtools/front_end/extensions/ExtensionPanel.js
@@ -118,7 +118,7 @@ WebInspector.ExtensionPanel.prototype = {
WebInspector.ExtensionButton = function(server, id, iconURL, tooltip, disabled)
{
this._id = id;
- this.element = document.createElement("button");
+ this.element = createElement("button");
this.element.className = "status-bar-item extension";
this.element.addEventListener("click", server.notifyButtonClicked.bind(server, this._id), false);
this.update(iconURL, tooltip, disabled);

Powered by Google App Engine
This is Rietveld 408576698