| Index: third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| index 642508cb14e55c9ad3c6b410b8ff7fba5d0cbe8b..07973f3bcba2f00ad763a55c970cca893201dbe4 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
|
| @@ -39,8 +39,8 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/NodeComputedStyle.h"
|
| #include "core/dom/ViewportDescription.h"
|
| -#include "core/frame/FrameView.h"
|
| #include "core/frame/Settings.h"
|
| +#include "core/layout/LayoutView.h"
|
|
|
| namespace blink {
|
|
|
| @@ -201,9 +201,9 @@ Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) const
|
| bool documentStyleHasViewportUnits = documentStyle->hasViewportUnits();
|
| documentStyle->setHasViewportUnits(false);
|
|
|
| - FrameView* view = m_document->view();
|
| - float width = view ? view->width() : 0;
|
| - float height = view ? view->height() : 0;
|
| + LayoutView* view = m_document->layoutView();
|
| + float width = view ? view->viewportSizeForViewportUnits().width() : 0;
|
| + float height = view ? view->viewportSizeForViewportUnits().height() : 0;
|
|
|
| CSSToLengthConversionData::FontSizes fontSizes(documentStyle, documentStyle);
|
| CSSToLengthConversionData::ViewportSize viewportSize(width, height);
|
|
|