Index: third_party/WebKit/Source/core/animation/LegacyStyleInterpolation.cpp |
diff --git a/third_party/WebKit/Source/core/animation/LegacyStyleInterpolation.cpp b/third_party/WebKit/Source/core/animation/LegacyStyleInterpolation.cpp |
index 7280279da18b08bc691fb7fe4dfe0a8e5fa1eca7..1eacbe2427aca595f3a4b39f874a5e88c9c5b425 100644 |
--- a/third_party/WebKit/Source/core/animation/LegacyStyleInterpolation.cpp |
+++ b/third_party/WebKit/Source/core/animation/LegacyStyleInterpolation.cpp |
@@ -4,6 +4,9 @@ |
#include "core/animation/LegacyStyleInterpolation.h" |
+#include "core/css/resolver/AnimatedStyleBuilder.h" |
+#include "core/css/resolver/StyleResolverState.h" |
+ |
#include <memory> |
namespace blink { |
@@ -48,6 +51,11 @@ LegacyStyleInterpolation::LegacyStyleInterpolation( |
RELEASE_ASSERT(typesMatch(m_start.get(), m_end.get())); |
} |
+void LegacyStyleInterpolation::apply(StyleResolverState& state) const { |
+ AnimatedStyleBuilder::applyProperty(id(), *state.style(), |
+ currentValue().get()); |
+} |
+ |
void LegacyStyleInterpolation::interpolate(int iteration, double fraction) { |
if (m_cachedFraction != fraction || m_cachedIteration != iteration) { |
m_start->interpolate(*m_end, fraction, *m_cachedValue); |