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

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

Issue 2487913002: Remove InterpolableBool and existing use of it in SVG path interpolation (Closed)
Patch Set: Created 4 years, 1 month 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/InterpolableValue.cpp
diff --git a/third_party/WebKit/Source/core/animation/InterpolableValue.cpp b/third_party/WebKit/Source/core/animation/InterpolableValue.cpp
index 2d344a5640a21392cf6c1d72da938a3c02379808..ca3cd574201b96fb3b02d6b9d19d5318ceecc8ee 100644
--- a/third_party/WebKit/Source/core/animation/InterpolableValue.cpp
+++ b/third_party/WebKit/Source/core/animation/InterpolableValue.cpp
@@ -38,18 +38,6 @@ void InterpolableNumber::interpolate(const InterpolableValue& to,
m_value * (1 - progress) + toNumber.m_value * progress;
}
-void InterpolableBool::interpolate(const InterpolableValue& to,
- const double progress,
- InterpolableValue& result) const {
- const InterpolableBool& toBool = toInterpolableBool(to);
- InterpolableBool& resultBool = toInterpolableBool(result);
-
- if (progress < 0.5)
- resultBool.m_value = m_value;
- else
- resultBool.m_value = toBool.m_value;
-}
-
void InterpolableList::interpolate(const InterpolableValue& to,
const double progress,
InterpolableValue& result) const {

Powered by Google App Engine
This is Rietveld 408576698