| Index: Source/core/css/resolver/ViewportStyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/ViewportStyleResolver.cpp b/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| index cc22bcf3afcb2a8f36ba0695c867631c0df01b83..b3d86daeaaed6cd68af5f5e08edbc42805891fa4 100644
|
| --- a/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| +++ b/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| @@ -116,7 +116,7 @@ float ViewportStyleResolver::getViewportArgumentValue(CSSPropertyID id) const
|
| return primitiveValue->getFloatValue();
|
|
|
| if (primitiveValue->isFontRelativeLength())
|
| - return primitiveValue->getFloatValue() * m_document->documentElement()->renderStyle()->fontDescription().computedSize();
|
| + return primitiveValue->getFloatValue() * m_document->renderStyle()->fontDescription().computedSize();
|
|
|
| if (primitiveValue->isPercentage()) {
|
| float percentValue = primitiveValue->getFloatValue() / 100.0f;
|
|
|