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 23d3b172a14fb8cf40de6a0d323e4f1704f79f85..d976d6a38e2683525bcb516655afa4ae813140ac 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -2651,7 +2651,9 @@ const CSSValue* ComputedStyleCSSValueMapping::get(CSSPropertyID propertyID, cons |
case CSSPropertyCounterReset: |
return valueForCounterDirectives(style, propertyID); |
case CSSPropertyWebkitClipPath: |
- if (ClipPathOperation* operation = style.clipPath()) { |
+ case CSSPropertyClipPath: |
+ if (ClipPathOperation* operation = propertyID == CSSPropertyWebkitClipPath |
+ ? style.clipPath() : style.svgStyle().clipPath()) { |
if (operation->type() == ClipPathOperation::SHAPE) |
return valueForBasicShape(style, toShapeClipPathOperation(operation)->basicShape()); |
if (operation->type() == ClipPathOperation::REFERENCE) |
@@ -2847,10 +2849,6 @@ const CSSValue* ComputedStyleCSSValueMapping::get(CSSPropertyID propertyID, cons |
return CSSPrimitiveValue::create(svgStyle.dominantBaseline()); |
case CSSPropertyTextAnchor: |
return CSSPrimitiveValue::create(svgStyle.textAnchor()); |
- case CSSPropertyClipPath: |
- if (!svgStyle.clipperResource().isEmpty()) |
- return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.clipperResource())); |
- return CSSPrimitiveValue::createIdentifier(CSSValueNone); |
case CSSPropertyMask: |
if (!svgStyle.maskerResource().isEmpty()) |
return CSSURIValue::create(serializeAsFragmentIdentifier(svgStyle.maskerResource())); |