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

Unified Diff: Source/devtools/front_end/resources/DatabaseQueryView.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/resources/DatabaseQueryView.js
diff --git a/Source/devtools/front_end/resources/DatabaseQueryView.js b/Source/devtools/front_end/resources/DatabaseQueryView.js
index 3b874bf8139f81f6709ced321403b8d476a9429a..3f73df68ea78a57e56f176298be0122b57811235 100644
--- a/Source/devtools/front_end/resources/DatabaseQueryView.js
+++ b/Source/devtools/front_end/resources/DatabaseQueryView.js
@@ -38,9 +38,9 @@ WebInspector.DatabaseQueryView = function(database)
this.element.classList.add("monospace");
this.element.addEventListener("selectstart", this._selectStart.bind(this), false);
- this._promptElement = document.createElement("div");
+ this._promptElement = createElement("div");
this._promptElement.className = "database-query-prompt";
- this._promptElement.appendChild(document.createElement("br"));
+ this._promptElement.appendChild(createElement("br"));
this._promptElement.addEventListener("keydown", this._promptKeyDown.bind(this), true);
this.element.appendChild(this._promptElement);
@@ -188,16 +188,16 @@ WebInspector.DatabaseQueryView.prototype = {
_appendQueryResult: function(query)
{
- var element = document.createElement("div");
+ var element = createElement("div");
element.className = "database-user-query";
this.element.insertBefore(element, this._prompt.proxyElement);
- var commandTextElement = document.createElement("span");
+ var commandTextElement = createElement("span");
commandTextElement.className = "database-query-text";
commandTextElement.textContent = query;
element.appendChild(commandTextElement);
- var resultElement = document.createElement("div");
+ var resultElement = createElement("div");
resultElement.className = "database-query-result";
element.appendChild(resultElement);
return resultElement;

Powered by Google App Engine
This is Rietveld 408576698