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

Unified Diff: third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.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/CSSShadowListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp
index 4ae5e64d56d16aee3c1720f4f387b8d52e27e843..f3337ff9d5255aa10775e27851c93423b62cb594 100644
--- a/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp
@@ -116,6 +116,7 @@ PairwiseInterpolationValue CSSShadowListInterpolationType::MaybeMergeSingles(
InterpolationValue&& end) const {
return ListInterpolationFunctions::MaybeMergeSingles(
std::move(start), std::move(end),
+ ListInterpolationFunctions::LengthMatchingStrategy::kPadToLargest,
ShadowInterpolationFunctions::MaybeMergeSingles);
}
@@ -134,6 +135,7 @@ void CSSShadowListInterpolationType::Composite(
double interpolation_fraction) const {
ListInterpolationFunctions::Composite(
underlying_value_owner, underlying_fraction, *this, value,
+ ListInterpolationFunctions::LengthMatchingStrategy::kPadToLargest,
ShadowInterpolationFunctions::NonInterpolableValuesAreCompatible,
ShadowInterpolationFunctions::Composite);
}

Powered by Google App Engine
This is Rietveld 408576698