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

Unified Diff: Source/core/animation/DeferredLegacyStyleInterpolation.cpp

Issue 813233002: Animation: Fix loss of type information when interpolating value of 0 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Attempt no2 at fixing linux oilpan errors Created 6 years 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: Source/core/animation/DeferredLegacyStyleInterpolation.cpp
diff --git a/Source/core/animation/DeferredLegacyStyleInterpolation.cpp b/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
index 633bde71ffc4205b506745da5baadd0ec4544dcd..e237c1695df3262cb7a98df659488ac78bba5769 100644
--- a/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
+++ b/Source/core/animation/DeferredLegacyStyleInterpolation.cpp
@@ -58,7 +58,8 @@ bool DeferredLegacyStyleInterpolation::interpolationRequiresStyleResolve(const C
if (primitiveValue.isCalculated()) {
CSSLengthArray lengthArray(CSSPrimitiveValue::LengthUnitTypeCount);
- primitiveValue.accumulateLengthArray(lengthArray);
+ CSSLengthTypeArray lengthTypeArray(CSSPrimitiveValue::LengthUnitTypeCount);
+ primitiveValue.accumulateLengthArray(lengthArray, lengthTypeArray);
samli 2014/12/22 03:38:04 lengthTypeArray not used here
return lengthArray[CSSPrimitiveValue::UnitTypeFontSize] != 0
|| lengthArray[CSSPrimitiveValue::UnitTypeFontXSize] != 0
|| lengthArray[CSSPrimitiveValue::UnitTypeRootFontSize] != 0

Powered by Google App Engine
This is Rietveld 408576698