Chromium Code Reviews| 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 f35a7cfb36048d9d1e676fc5c6e7d5f093b973cc..d8299e7ec6818cf20044b299925d943a752c076e 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
| @@ -163,3 +163,16 @@ WebInspector.ColorSwatch._nextColorFormat = function(color, curFormat) |
| return cf.RGBA; |
| } |
| } |
| + |
| +WebInspector.ShadowSwatch = {} |
| + |
| +/** |
| + * @return {!Element} |
| + */ |
| +WebInspector.ShadowSwatch.create = function() |
|
lushnikov
2016/08/16 22:53:20
Let's rename to be consistent with our future mode
flandy
2016/08/18 22:00:41
Done.
|
| +{ |
| + var element = createElementWithClass("span", "shadow-icon"); |
| + var root = WebInspector.createShadowRootWithCoreStyles(element, "ui/shadowSwatch.css"); |
| + root.createChild("span", "shadow-swatch"); |
| + return element; |
| +} |