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..3301dd3a7840fa0936e77923aa6776d69007c1ac 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp |
@@ -1104,12 +1104,26 @@ StyleColor StyleBuilderConverter::convertStyleColor(StyleResolverState& state, |
const CSSValue& value, |
bool forVisitedLink) { |
if (value.isIdentifierValue() && |
- toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor) |
+ (toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor)) |
Timothy Loh
2016/11/30 14:51:10
No reason to add parenthesis here :)
Manuel Rego
2016/11/30 15:41:53
Sure, sorry for the noise again. :-/
|
return StyleColor::currentColor(); |
return state.document().textLinkColors().colorFromCSSValue(value, Color(), |
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()) { |