Index: third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
index 63f508c6f8c157057c96f0f485eee62015a41ed4..43c98ab012c2bdf9afeea50db3f28e2e02969da7 100644 |
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp |
@@ -148,9 +148,8 @@ static EColorInterpolation colorInterpolationForElement(SVGElement& element, ECo |
// "manually" (used by external SVG files.) |
if (const StylePropertySet* propertySet = element.presentationAttributeStyle()) { |
const CSSValue* cssValue = propertySet->getPropertyCSSValue(CSSPropertyColorInterpolationFilters); |
- if (cssValue && cssValue->isPrimitiveValue()) { |
- const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(*cssValue); |
- return primitiveValue.convertTo<EColorInterpolation>(); |
+ if (cssValue && cssValue->isIdentifierValue()) { |
+ return toCSSIdentifierValue(*cssValue).convertTo<EColorInterpolation>(); |
} |
} |
// 'auto' is the default (per Filter Effects), but since the property is |