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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 4 years 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: third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
index fc1afbe169ed746f76d92ef3eba888ee4baaf097..8feb0b040e032a6be4b9bdd8a30fa70803b29e34 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
@@ -14,7 +14,7 @@ UI.ColorSwatch = class extends HTMLSpanElement {
*/
static create() {
if (!UI.ColorSwatch._constructor)
- UI.ColorSwatch._constructor = registerCustomElement('span', 'color-swatch', UI.ColorSwatch.prototype);
+ UI.ColorSwatch._constructor = UI.registerCustomElement('span', 'color-swatch', UI.ColorSwatch.prototype);
return /** @type {!UI.ColorSwatch} */ (new UI.ColorSwatch._constructor());
}
@@ -164,7 +164,7 @@ UI.BezierSwatch = class extends HTMLSpanElement {
*/
static create() {
if (!UI.BezierSwatch._constructor)
- UI.BezierSwatch._constructor = registerCustomElement('span', 'bezier-swatch', UI.BezierSwatch.prototype);
+ UI.BezierSwatch._constructor = UI.registerCustomElement('span', 'bezier-swatch', UI.BezierSwatch.prototype);
return /** @type {!UI.BezierSwatch} */ (new UI.BezierSwatch._constructor());
}
@@ -224,7 +224,7 @@ UI.CSSShadowSwatch = class extends HTMLSpanElement {
static create() {
if (!UI.CSSShadowSwatch._constructor) {
UI.CSSShadowSwatch._constructor =
- registerCustomElement('span', 'css-shadow-swatch', UI.CSSShadowSwatch.prototype);
+ UI.registerCustomElement('span', 'css-shadow-swatch', UI.CSSShadowSwatch.prototype);
}
return /** @type {!UI.CSSShadowSwatch} */ (new UI.CSSShadowSwatch._constructor());

Powered by Google App Engine
This is Rietveld 408576698