Index: third_party/WebKit/Source/devtools/front_end/ui/Icon.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Icon.js b/third_party/WebKit/Source/devtools/front_end/ui/Icon.js |
index edbcaae3a34718bd2636d6c999b3964ce80cf384..e8e074872ae17579d4f3c0faa9cda137b885d758 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/Icon.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Icon.js |
@@ -44,8 +44,7 @@ UI.Icon = class extends HTMLSpanElement { |
*/ |
setIconType(iconType) { |
if (this._descriptor) { |
- this.style.removeProperty('-webkit-mask-position'); |
- this.style.removeProperty('background-position'); |
+ this.style.removeProperty('--spritesheet-position'); |
this.style.removeProperty('width'); |
this.style.removeProperty('height'); |
this._toggleClasses(false); |
@@ -56,8 +55,7 @@ UI.Icon = class extends HTMLSpanElement { |
if (descriptor) { |
this._iconType = iconType; |
this._descriptor = descriptor; |
- this.style.setProperty('-webkit-mask-position', this._propertyValue()); |
- this.style.setProperty('background-position', this._propertyValue()); |
+ this.style.setProperty('--spritesheet-position', this._propertyValue()); |
this.style.setProperty('width', this._descriptor.width + 'px'); |
this.style.setProperty('height', this._descriptor.height + 'px'); |
this._toggleClasses(true); |