Index: Source/core/css/resolver/StyleBuilderConverter.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp |
index b51095c6ced8b29a33611d2ed98ddfa47e9a90b9..3706b0b0a94e59fa121013533f23edc784ced817 100644 |
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp |
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp |
@@ -501,6 +501,15 @@ Length StyleBuilderConverter::convertLength(StyleResolverState& state, CSSValue* |
return result; |
} |
+Length StyleBuilderConverter::convertLengthUnzoomed(StyleResolverState& state, CSSValue* value) |
+{ |
+ CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
+ CSSToLengthConversionData conversionData = state.cssToLengthConversionData().copyWithAdjustedZoom(1.0f); |
+ Length result = primitiveValue->convertToLength<FixedConversion | PercentConversion>(conversionData); |
+ result.setQuirk(primitiveValue->isQuirkValue()); |
+ return result; |
+} |
+ |
Length StyleBuilderConverter::convertLengthOrAuto(StyleResolverState& state, CSSValue* value) |
{ |
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |