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

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

Issue 2128093004: DevTools: Add color swatches to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed further comments Created 4 years, 5 months 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 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()

Powered by Google App Engine
This is Rietveld 408576698