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); |