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

Unified Diff: Source/devtools/front_end/elements/Spectrum.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/elements/Spectrum.js
diff --git a/Source/devtools/front_end/elements/Spectrum.js b/Source/devtools/front_end/elements/Spectrum.js
index 5a60c99feea5348651d86d2c0c294c03fab2e9e0..550def5d420b7d8797e072ba37b8b967fa2dfa82 100644
--- a/Source/devtools/front_end/elements/Spectrum.js
+++ b/Source/devtools/front_end/elements/Spectrum.js
@@ -446,7 +446,7 @@ WebInspector.SpectrumPopupHelper.prototype = {
*/
WebInspector.ColorSwatch = function(readOnly)
{
- this.element = document.createElementWithClass("span", "swatch");
+ this.element = createElementWithClass("span", "swatch");
this._swatchInnerElement = this.element.createChild("span", "swatch-inner");
var shiftClickMessage = WebInspector.UIString("Shift-click to change color format.");
this.element.title = readOnly ? shiftClickMessage : String.sprintf("%s\n%s", WebInspector.UIString("Click to open a colorpicker."), shiftClickMessage);

Powered by Google App Engine
This is Rietveld 408576698