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

Unified Diff: Source/devtools/front_end/ui/SuggestBox.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
« no previous file with comments | « Source/devtools/front_end/ui/StatusBarButton.js ('k') | Source/devtools/front_end/ui/TabbedPane.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/SuggestBox.js
diff --git a/Source/devtools/front_end/ui/SuggestBox.js b/Source/devtools/front_end/ui/SuggestBox.js
index 3c79dc6427164287431fe9217d38291948275b31..51eab53043c54b835215b5713fc315577e3e990c 100644
--- a/Source/devtools/front_end/ui/SuggestBox.js
+++ b/Source/devtools/front_end/ui/SuggestBox.js
@@ -62,7 +62,7 @@ WebInspector.SuggestBox = function(suggestBoxDelegate, maxItemsHeight)
this._maxItemsHeight = maxItemsHeight;
this._bodyElement = document.body;
this._maybeHideBound = this._maybeHide.bind(this);
- this._element = document.createElementWithClass("div", "suggest-box");
+ this._element = createElementWithClass("div", "suggest-box");
this._element.addEventListener("mousedown", this._onBoxMouseDown.bind(this), true);
}
@@ -243,7 +243,7 @@ WebInspector.SuggestBox.prototype = {
*/
_createItemElement: function(prefix, text)
{
- var element = document.createElementWithClass("div", "suggest-box-content-item source-code");
+ var element = createElementWithClass("div", "suggest-box-content-item source-code");
element.tabIndex = -1;
if (prefix && prefix.length && !text.indexOf(prefix)) {
element.createChild("span", "prefix").textContent = prefix;
@@ -413,7 +413,7 @@ WebInspector.SuggestBox.prototype = {
*/
WebInspector.SuggestBox.Overlay = function()
{
- this.element = document.createElementWithClass("div", "suggest-box-overlay");
+ this.element = createElementWithClass("div", "suggest-box-overlay");
this._resize();
document.body.appendChild(this.element);
}
« no previous file with comments | « Source/devtools/front_end/ui/StatusBarButton.js ('k') | Source/devtools/front_end/ui/TabbedPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698