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..57f85f0cf3dd3dfe0593da90149b584784e9de42 100644 |
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp |
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp |
@@ -501,6 +501,13 @@ 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); |
+ return primitiveValue->convertToLength<FixedConversion | PercentConversion>(conversionData); |
+} |
+ |
Length StyleBuilderConverter::convertLengthOrAuto(StyleResolverState& state, CSSValue* value) |
{ |
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |