Index: Source/core/css/CSSPrimitiveValue.cpp |
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp |
index 0fc04f0ad270edc9d6df18fa4a22119fd402f35d..fac0d2c93ed0be68decdbd1bb4181d3a70e265c5 100644 |
--- a/Source/core/css/CSSPrimitiveValue.cpp |
+++ b/Source/core/css/CSSPrimitiveValue.cpp |
@@ -699,6 +699,8 @@ Length CSSPrimitiveValue::convertToLength(const CSSToLengthConversionData& conve |
return computeLength<Length>(conversionData); |
if (isPercentage()) |
return Length(getDoubleValue(), Percent); |
+ if (isNumber()) |
Timothy Loh
2015/06/03 01:31:08
Is this something that needs to be here? We curren
Erik Dahlström
2015/06/03 14:51:30
This is needed due to https://codereview.chromium.
Timothy Loh
2015/06/04 02:10:16
How are we getting into here though? I only see th
|
+ return Length(getDoubleValue() * conversionData.zoom(), Fixed); |
ASSERT(isCalculated()); |
return Length(cssCalcValue()->toCalcValue(conversionData)); |
} |