Index: third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.cpp |
diff --git a/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.cpp b/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.cpp |
index f3565e6ad2b42285e045280e01ab7843dad0a824..f4328718a1f8b925c05d74b182ab8a622fcb9328 100644 |
--- a/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.cpp |
+++ b/third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.cpp |
@@ -149,6 +149,8 @@ Length LengthInterpolationFunctions::createLength(const InterpolableValue& inter |
double percentage = 0; |
for (size_t i = 0; i < CSSPrimitiveValue::LengthUnitTypeCount; i++) { |
double value = toInterpolableNumber(*interpolableList.get(i)).value(); |
+ if (value == 0) |
+ continue; |
if (i == CSSPrimitiveValue::UnitTypePercentage) { |
percentage = value; |
} else { |