Index: Source/core/page/DOMWindow.cpp |
diff --git a/Source/core/page/DOMWindow.cpp b/Source/core/page/DOMWindow.cpp |
index 36d1066326b9e98bdbfa306f15b07ba94d1ef2fc..b067610b185465d4076389994ba5c0836f5d6be5 100644 |
--- a/Source/core/page/DOMWindow.cpp |
+++ b/Source/core/page/DOMWindow.cpp |
@@ -44,6 +44,7 @@ |
#include "core/css/MediaQueryMatcher.h" |
#include "core/css/StyleMedia.h" |
#include "core/css/resolver/StyleResolver.h" |
+#include "core/css/resolver/ViewportStyleResolver.h" |
#include "core/dom/DeviceOrientationController.h" |
#include "core/dom/Document.h" |
#include "core/dom/Element.h" |
@@ -347,7 +348,7 @@ void DOMWindow::setDocument(PassRefPtr<Document> document) |
return; |
m_frame->script()->updateDocument(); |
- m_document->updateViewportArguments(); |
+ m_document->styleResolver()->viewportStyleResolver()->resolve(); |
if (m_frame->page() && m_frame->view()) { |
if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scrollingCoordinator()) { |