Index: Source/core/css/resolver/ViewportStyleResolver.cpp |
diff --git a/Source/core/css/resolver/ViewportStyleResolver.cpp b/Source/core/css/resolver/ViewportStyleResolver.cpp |
index dba44849fda6c31920b9f4b1becb7e06c1d2f090..904f3bcf00903c1c8096b158113f6eae2ca774f9 100644 |
--- a/Source/core/css/resolver/ViewportStyleResolver.cpp |
+++ b/Source/core/css/resolver/ViewportStyleResolver.cpp |
@@ -189,7 +189,9 @@ Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) const |
float width = view ? view->width() : 0; |
float height = view ? view->height() : 0; |
- Length result = primitiveValue->convertToLength<AnyConversion>(CSSToLengthConversionData(documentStyle, documentStyle, width, height, 1.0f)); |
+ CSSToLengthConversionData::FontSizes fontSizes(documentStyle, documentStyle); |
+ CSSToLengthConversionData::ViewportSize viewportSize(width, height); |
+ Length result = primitiveValue->convertToLength<AnyConversion>(CSSToLengthConversionData(documentStyle, fontSizes, viewportSize, 1.0f)); |
if (documentStyle->hasViewportUnits()) |
m_document->setHasViewportUnits(); |
documentStyle->setHasViewportUnits(documentStyleHasViewportUnits); |