Chromium Code Reviews| 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 a3c732e76462eca123abe0a46af7f6eb91b38f68..72b2dbd4e1c353a865d82704f801b8fce633fbef 100644 |
| --- a/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp |
| +++ b/third_party/WebKit/Source/core/css/CSSToLengthConversionData.cpp |
| @@ -68,8 +68,9 @@ float CSSToLengthConversionData::FontSizes::ch() const |
| } |
| CSSToLengthConversionData::ViewportSize::ViewportSize(const LayoutView* layoutView) |
| - : m_width(layoutView ? layoutView->layoutViewportWidth() : 0) |
| - , m_height(layoutView ? layoutView->layoutViewportHeight() : 0) |
| + : m_size( |
|
jbroman
2016/01/20 16:50:25
DoubleSize can be constructed from the FloatSize,
bokan
2016/01/20 16:51:21
Ack, you're right. I'll up a new patch.
|
| + layoutView ? layoutView->viewportSizeForViewportUnits().width() : 0, |
| + layoutView ? layoutView->viewportSizeForViewportUnits().height() : 0) |
| { |
| } |