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

Unified Diff: Source/core/css/CSSPrimitiveValue.cpp

Issue 292173009: Web Animations - responsive interpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@0519_MySeparation
Patch Set: applyAndSnapshotAnimatableValue Created 6 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: Source/core/css/CSSPrimitiveValue.cpp
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
index d46984f298da911a14d224d6d2a6378f2853bfd3..eb8e4f6937a79db6ddd9eb26c11260e1157b3191 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -670,6 +670,13 @@ double CSSPrimitiveValue::computeLengthDouble(const CSSToLengthConversionData& c
return result * conversionData.zoom();
}
+void CSSPrimitiveValue::zeroLengthArray(CSSLengthArray& lengthArray)
+{
+ lengthArray.resize(LengthUnitTypeCount);
+ for (size_t i = 0; i < LengthUnitTypeCount; ++i)
+ lengthArray.at(i) = 0;
+}
+
void CSSPrimitiveValue::accumulateLengthArray(CSSLengthArray& lengthArray, double multiplier) const
{
ASSERT(lengthArray.size() == LengthUnitTypeCount);

Powered by Google App Engine
This is Rietveld 408576698