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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 2310633002: DevTools: Reduce color parsing by passing in Color to ColorSwatch (Closed)
Patch Set: Get color from model Created 4 years, 3 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/elements/ComputedStyleWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
index d0db21e957370a78956d166f2ff5904b1558b1a3..5b67223fe51540116a3caf40614f3e7345cbce86 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -129,7 +129,7 @@ WebInspector.ComputedStyleWidget.prototype = {
if (!color)
return createTextNode(text);
var swatch = WebInspector.ColorSwatch.create();
- swatch.setColorText(text);
+ swatch.setColor(color);
swatch.setFormat(WebInspector.Color.detectColorFormat(color));
return swatch;
},

Powered by Google App Engine
This is Rietveld 408576698