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 2262add4a35036ce226068c700b67322bc79a313..4ac9cb3e2aadc5fc18ff6e2f33cc5e24c556398b 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js |
| @@ -43,6 +43,17 @@ WebInspector.ColorSwatch.prototype = { |
| }, |
| /** |
| + * @param {boolean} hide |
| + */ |
| + hideText: function(hide) |
| + { |
| + if (hide) |
| + this._colorValueElement.style.display = "none"; |
|
lushnikov
2016/07/13 21:21:53
Let's rather do:
this._colorValueElement.hidden =
flandy
2016/07/13 23:02:46
Done.
|
| + else |
| + this._colorValueElement.style.display = "initial"; |
| + }, |
| + |
| + /** |
| * @return {!WebInspector.Color.Format} |
| */ |
| format: function() |