Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
index a9e843e75f2aa8d532c229747e44b76177f2e420..4af60e88dd7da6ee0e5090053d6350da9d51d411 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -170,6 +170,14 @@ void StyleBuilderFunctions::applyValueCSSPropertyColor(StyleResolverState& state |
return; |
} |
+ bool isFillCurrentColorByParent = state.parentStyle()->svgStyle().isFillColorCurrentColor(); |
+ bool isStrokeCurrentColorByParent = state.parentStyle()->svgStyle().isStrokeColorCurrentColor(); |
+ |
+ if (value->isPrimitiveValue() && (isFillCurrentColorByParent || isStrokeCurrentColorByParent)) { |
fs
2015/12/15 11:36:24
I still don't think that this is something that yo
|
+ applyInheritCSSPropertyColor(state); |
+ return; |
+ } |
+ |
if (state.applyPropertyToRegularStyle()) |
state.style()->setColor(StyleBuilderConverter::convertColor(state, *value)); |
if (state.applyPropertyToVisitedLinkStyle()) |