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

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 1310883002: DevTools: represent ComputedStyle with simple Map (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 5 years, 4 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: Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index c43345e06313107d60541757e75db42aad324c0a..7b9a5c10de70f305bc1eb210e9347991336f4855 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -2065,13 +2065,13 @@ WebInspector.StylePropertyTreeElement.prototype = {
var swatchIcon = new WebInspector.ColorSwatchPopoverIcon(this, stylesPopoverHelper, text);
/**
- * @param {?WebInspector.CSSStyleDeclaration} styles
+ * @param {?Map.<string, string>} styles
*/
function computedCallback(styles)
{
if (!styles)
return;
- var bgColorText = styles.getPropertyValue("background-color") || "";
+ var bgColorText = styles.get("background-color") || "";
var bgColor = WebInspector.Color.parse(bgColorText);
// TODO(aboxhall): for background color with alpha, compute the actual
// visible background color (blended with content underneath).

Powered by Google App Engine
This is Rietveld 408576698