Index: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp |
index 93f1624dc4358cfca72214bac760bd8926ae8fde..67f0b8e72d31bba5b796ac6efdd8b8985b4c03fd 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp |
@@ -184,9 +184,10 @@ InterpolationValue CSSColorInterpolationType::maybeConvertNeutral( |
InterpolationValue CSSColorInterpolationType::maybeConvertInitial( |
const StyleResolverState&, |
ConversionCheckers& conversionCheckers) const { |
- const StyleColor initialColor = |
- ColorPropertyFunctions::getInitialColor(cssProperty()); |
- return convertStyleColorPair(initialColor, initialColor); |
+ StyleColor initialColor; |
+ if (ColorPropertyFunctions::getInitialColor(cssProperty(), initialColor)) |
+ return convertStyleColorPair(initialColor, initialColor); |
+ return nullptr; |
} |
InterpolationValue CSSColorInterpolationType::maybeConvertInherit( |