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

Unified Diff: third_party/WebKit/Source/core/animation/LegacyStyleInterpolation.cpp

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 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: 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);

Powered by Google App Engine
This is Rietveld 408576698