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

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 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..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()

Powered by Google App Engine
This is Rietveld 408576698