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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Fix tests that were listing all the CSS properties Created 4 years, 1 month 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/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index 3bbcc2e917661d6565f3324356e66679f12d6269..e6917ed8630d4169b5e01f4b147438eda46061cf 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -1103,9 +1103,12 @@ PassRefPtr<SVGDashArray> StyleBuilderConverter::convertStrokeDasharray(
StyleColor StyleBuilderConverter::convertStyleColor(StyleResolverState& state,
const CSSValue& value,
bool forVisitedLink) {
- if (value.isIdentifierValue() &&
- toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor)
- return StyleColor::currentColor();
+ if (value.isIdentifierValue()) {
+ if (toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor)
+ return StyleColor::currentColor();
+ if (toCSSIdentifierValue(value).getValueID() == CSSValueAuto)
+ return StyleColor::autoColor();
+ }
return state.document().textLinkColors().colorFromCSSValue(value, Color(),
forVisitedLink);
}

Powered by Google App Engine
This is Rietveld 408576698