Index: third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp |
index 6792d1b4f4cd6ca4b3b63a2393890e2266929dc0..03d312512658d0e8dce5c0860a3aab07a5023d0a 100644 |
--- a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp |
@@ -101,19 +101,19 @@ double CSSToLengthConversionData::viewportWidthPercent() const { |
// FIXME: Remove m_style from this class. Plumb viewport and rem unit |
// information through as output parameters on functions involved in length |
// resolution. |
- const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(); |
+ const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(true); |
return m_viewportSize.width() / 100; |
} |
double CSSToLengthConversionData::viewportHeightPercent() const { |
- const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(); |
+ const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(true); |
return m_viewportSize.height() / 100; |
} |
double CSSToLengthConversionData::viewportMinPercent() const { |
- const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(); |
+ const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(true); |
return std::min(m_viewportSize.width(), m_viewportSize.height()) / 100; |
} |
double CSSToLengthConversionData::viewportMaxPercent() const { |
- const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(); |
+ const_cast<ComputedStyle*>(m_style)->setHasViewportUnits(true); |
return std::max(m_viewportSize.width(), m_viewportSize.height()) / 100; |
} |