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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2577633002: [css-ui] Update resolved value of caret-color property (Closed)
Patch Set: Fix tests Created 4 years 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/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 3a4c9c16bf4a3f15e8062118e986dcb2c32f61fe..7c202cfb7fedbb97d78f967ffd42ad59d41f0ae0 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2206,11 +2206,11 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
case CSSPropertyCaptionSide:
return CSSIdentifierValue::create(style.captionSide());
case CSSPropertyCaretColor:
- if (style.caretColor().isCurrentColor())
- return CSSIdentifierValue::create(CSSValueCurrentcolor);
- if (style.caretColor().isAutoColor())
- return CSSIdentifierValue::create(CSSValueAuto);
- return CSSColorValue::create(style.caretColor().color().rgb());
+ return allowVisitedStyle
+ ? CSSColorValue::create(
+ style.visitedDependentColor(CSSPropertyCaretColor).rgb())
+ : currentColorOrValidColor(style,
+ style.caretColor().toStyleColor());
case CSSPropertyClear:
return CSSIdentifierValue::create(style.clear());
case CSSPropertyColor:

Powered by Google App Engine
This is Rietveld 408576698