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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.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/CSSLengthListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp
index 36d4ca3be72e98bcc0ef5fd84e827e6d0afc3435..7d561772ef1de92a2bdb68c432a20ff88192d95c 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::kLowestCommonMultiple,
LengthInterpolationFunctions::MergeSingles);
}
@@ -144,6 +145,7 @@ void CSSLengthListInterpolationType::Composite(
double interpolation_fraction) const {
ListInterpolationFunctions::Composite(
underlying_value_owner, underlying_fraction, *this, value,
+ ListInterpolationFunctions::kLowestCommonMultiple,
LengthInterpolationFunctions::NonInterpolableValuesAreCompatible,
LengthInterpolationFunctions::Composite);
}

Powered by Google App Engine
This is Rietveld 408576698