Index: third_party/WebKit/Source/core/animation/CSSValueInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSValueInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSValueInterpolationType.cpp |
index 50acd0214ae1ef91cb33e91c86f52829a50c6d1e..c448b2309d2ac7766b44d7da7560b9d9e7634c68 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSValueInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSValueInterpolationType.cpp |
@@ -21,7 +21,7 @@ class CSSValueNonInterpolableValue : public NonInterpolableValue { |
return adoptRef(new CSSValueNonInterpolableValue(cssValue)); |
} |
- const CSSValue& cssValue() const { return *m_cssValue; } |
+ const CSSValue* cssValue() const { return m_cssValue.get(); } |
DECLARE_NON_INTERPOLABLE_VALUE_TYPE(); |
@@ -65,7 +65,14 @@ void CSSValueInterpolationType::applyStandardPropertyValue( |
StyleResolverState& state) const { |
StyleBuilder::applyProperty( |
cssProperty(), state, |
- toCSSValueNonInterpolableValue(nonInterpolableValue)->cssValue()); |
+ *createCSSValue(interpolableValue, nonInterpolableValue, state)); |
+} |
+ |
+const CSSValue* CSSValueInterpolationType::createCSSValue( |
+ const InterpolableValue&, |
+ const NonInterpolableValue* nonInterpolableValue, |
+ const StyleResolverState&) const { |
+ return toCSSValueNonInterpolableValue(nonInterpolableValue)->cssValue(); |
} |
} // namespace blink |