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 5093c1b602851c7ec5f7e801855c0c66266e8fd2..6da6660b3995a828fdb18d122fb8b65c45108040 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp |
@@ -1110,6 +1110,20 @@ StyleColor StyleBuilderConverter::convertStyleColor(StyleResolverState& state, |
forVisitedLink); |
} |
+StyleAutoColor StyleBuilderConverter::convertStyleAutoColor( |
+ StyleResolverState& state, |
+ const CSSValue& value, |
+ bool forVisitedLink) { |
+ if (value.isIdentifierValue()) { |
+ if (toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor) |
+ return StyleAutoColor::currentColor(); |
+ if (toCSSIdentifierValue(value).getValueID() == CSSValueAuto) |
+ return StyleAutoColor::autoColor(); |
+ } |
+ return state.document().textLinkColors().colorFromCSSValue(value, Color(), |
+ forVisitedLink); |
+} |
+ |
float StyleBuilderConverter::convertTextStrokeWidth(StyleResolverState& state, |
const CSSValue& value) { |
if (value.isIdentifierValue() && toCSSIdentifierValue(value).getValueID()) { |