Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 4142bc6583d29126022b865e01ddee5f06d36d42..0ac0f2230a4db7fdc488b11f04062ec7ce3081ea 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp
@@ -146,9 +146,8 @@ static EColorInterpolation colorInterpolationForElement(
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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathElement.cpp ('k') | third_party/WebKit/Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698