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

Unified Diff: Source/devtools/front_end/ui/UIUtils.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/TextPrompt.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/UIUtils.js
diff --git a/Source/devtools/front_end/ui/UIUtils.js b/Source/devtools/front_end/ui/UIUtils.js
index 4d721b4d2904358422dc9dad6cfc1b04882634b0..7cad9bb9a171c9362c7611aa9f8dc75774343cd0 100644
--- a/Source/devtools/front_end/ui/UIUtils.js
+++ b/Source/devtools/front_end/ui/UIUtils.js
@@ -145,7 +145,7 @@ WebInspector._elementDragEnd = function(event)
*/
WebInspector.GlassPane = function()
{
- this.element = document.createElement("div");
+ this.element = createElement("div");
this.element.style.cssText = "position:absolute;top:0;bottom:0;left:0;right:0;background-color:transparent;z-index:1000;";
this.element.id = "glass-pane";
document.body.appendChild(this.element);
@@ -369,7 +369,7 @@ WebInspector.handleElementValueModifications = function(event, element, finishHa
}
if (replacementString) {
- var replacementTextNode = document.createTextNode(replacementString);
+ var replacementTextNode = createTextNode(replacementString);
wordRange.deleteContents();
wordRange.insertNode(replacementTextNode);
@@ -668,7 +668,7 @@ WebInspector.restoreFocusFromElement = function(element)
WebInspector.setToolbarColors = function(backgroundColor, color)
{
if (!WebInspector._themeStyleElement) {
- WebInspector._themeStyleElement = document.createElement("style");
+ WebInspector._themeStyleElement = createElement("style");
document.head.appendChild(WebInspector._themeStyleElement);
}
var parsedColor = WebInspector.Color.parse(color);
« no previous file with comments | « Source/devtools/front_end/ui/TextPrompt.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698