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

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

Issue 2844213002: Fix behaviour of shadow interpolation with mismatched list lengths (Closed)
Patch Set: Revert transition test to old behaviour Created 3 years, 7 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/CSSLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
index 36d4ca3be72e98bcc0ef5fd84e827e6d0afc3435..d666851eb7f8b112b69e433ab1b032f64734cf2f 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
@@ -124,6 +124,7 @@ PairwiseInterpolationValue CSSLengthListInterpolationType::MaybeMergeSingles(
InterpolationValue&& end) const {
return ListInterpolationFunctions::MaybeMergeSingles(
std::move(start), std::move(end),
+ ListInterpolationFunctions::LengthMatchingStrategy::kLowestCommonMultiple,
LengthInterpolationFunctions::MergeSingles);
}
@@ -144,6 +145,7 @@ void CSSLengthListInterpolationType::Composite(
double interpolation_fraction) const {
ListInterpolationFunctions::Composite(
underlying_value_owner, underlying_fraction, *this, value,
+ ListInterpolationFunctions::LengthMatchingStrategy::kLowestCommonMultiple,
LengthInterpolationFunctions::NonInterpolableValuesAreCompatible,
LengthInterpolationFunctions::Composite);
}

Powered by Google App Engine
This is Rietveld 408576698