Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: Source/core/css/resolver/ViewportStyleResolver.cpp

Issue 18023018: @viewport lengths relative to initial font. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698