Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 7d34c1c50d779b90588ebb348dc5f746f498d382..4ae9f28ff566bca6f60012f115fc2e3622c8a081 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -33,7 +33,7 @@ |
#include "HTMLNames.h" |
#include "RuntimeEnabledFeatures.h" |
#include "StylePropertyShorthand.h" |
-#include "core/animation/AnimatableNumber.h" |
+#include "core/animation/AnimatableLength.h" |
#include "core/animation/AnimatableValue.h" |
#include "core/animation/Animation.h" |
#include "core/animation/DocumentTimeline.h" |
@@ -1204,7 +1204,7 @@ bool StyleResolver::applyAnimatedProperties(StyleResolverState& state, const Doc |
RELEASE_ASSERT_WITH_MESSAGE(!iter->value->dependsOnUnderlyingValue(), "Not yet implemented: An interface for compositing onto the underlying value."); |
RefPtr<AnimatableValue> animatableValue = iter->value->compositeOnto(0); |
if (pass == HighPriorityProperties && property == CSSPropertyLineHeight) |
- state.setLineHeightValue(toAnimatableNumber(animatableValue.get())->toCSSValue().get()); |
+ state.setLineHeightValue(toAnimatableLength(animatableValue.get())->toCSSValue().get()); |
else |
AnimatedStyleBuilder::applyProperty(property, state, animatableValue.get()); |
didApply = true; |
@@ -1231,7 +1231,7 @@ bool StyleResolver::applyAnimatedProperties(StyleResolverState& state, const Doc |
continue; |
RefPtr<AnimatableValue> animatableValue = iter->value->compositeOnto(AnimatableValue::neutralValue()); |
if (pass == HighPriorityProperties && property == CSSPropertyLineHeight) |
- state.setLineHeightValue(toAnimatableNumber(animatableValue.get())->toCSSValue().get()); |
+ state.setLineHeightValue(toAnimatableLength(animatableValue.get())->toCSSValue().get()); |
else |
AnimatedStyleBuilder::applyProperty(property, state, animatableValue.get()); |
didApply = true; |