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..ffa6a4df2e938d31f80445abaf18e12966b816df 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,14 @@ WebInspector.ColorSwatch.prototype = { |
| }, |
| /** |
| + * @param {boolean} show |
| + */ |
| + showText: function(show) |
|
lushnikov
2016/07/12 22:38:46
let's call it hideText
flandy
2016/07/13 18:14:57
Done.
|
| + { |
| + show ? this._colorValueElement.style.display = "initial" : this._colorValueElement.style.display = "none"; |
|
lushnikov
2016/07/12 22:38:46
nit: let's do if statement here
flandy
2016/07/13 18:14:57
Done.
|
| + }, |
| + |
| + /** |
| * @return {!WebInspector.Color.Format} |
| */ |
| format: function() |