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

Unified Diff: Source/core/animation/CSSValueInterpolationType.cpp

Issue 1217983003: Allow animation of non-interpolable properties in CSS Animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 6 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: Source/core/animation/CSSValueInterpolationType.cpp
diff --git a/Source/core/animation/CSSValueInterpolationType.cpp b/Source/core/animation/CSSValueInterpolationType.cpp
index 6684226ec1d40e439375be1225e176d807a9fd8f..bf765d5cb710155cf456f7e6992b24d513c41ce4 100644
--- a/Source/core/animation/CSSValueInterpolationType.cpp
+++ b/Source/core/animation/CSSValueInterpolationType.cpp
@@ -16,7 +16,9 @@ PassOwnPtrWillBeRawPtr<InterpolationValue> CSSValueInterpolationType::maybeConve
void CSSValueInterpolationType::apply(const InterpolableValue&, const NonInterpolableValue* nonInterpolableValue, StyleResolverState& state) const
{
- StyleBuilder::applyProperty(m_property, state, toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue());
+ CSSValue* value = toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue();
+ if (value)
+ StyleBuilder::applyProperty(m_property, state, value);
}
DEFINE_NON_INTERPOLABLE_VALUE_TYPE(DefaultNonInterpolableValue);
« no previous file with comments | « LayoutTests/animations/interpolation/position-interpolation.html ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698