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

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

Issue 2844213002: Fix behaviour of shadow interpolation with mismatched list lengths (Closed)
Patch Set: testspants Created 3 years, 8 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/CSSSizeListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.cpp
index 25e95df60a12d4b6b29767482cadcb5a816e65c4..678a715791b13bb077144755c584ddee9b710de1 100644
--- a/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.cpp
@@ -150,6 +150,7 @@ PairwiseInterpolationValue CSSSizeListInterpolationType::MaybeMergeSingles(
InterpolationValue&& end) const {
return ListInterpolationFunctions::MaybeMergeSingles(
std::move(start), std::move(end),
+ ListInterpolationFunctions::kLowestCommonMultiple,
SizeInterpolationFunctions::MaybeMergeSingles);
}
@@ -168,6 +169,8 @@ void CSSSizeListInterpolationType::Composite(
double interpolation_fraction) const {
ListInterpolationFunctions::Composite(
underlying_value_owner, underlying_fraction, *this, value,
+ ListInterpolationFunctions::kLowestCommonMultiple,
+
SizeInterpolationFunctions::NonInterpolableValuesAreCompatible,
SizeInterpolationFunctions::Composite);
}

Powered by Google App Engine
This is Rietveld 408576698