Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index 1a99401fc2b06c315df222627dcd2e2638ddd12a..109106484c27697a26b82514d9de111443151a5a 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -433,6 +433,7 @@ void FrameView::setFrameRect(const IntRect& newRect) { |
if (m_frame->isMainFrame()) |
m_frame->host()->visualViewport().mainFrameDidChangeSize(); |
+ |
frame().loader().restoreScrollPositionAndViewState(); |
} |
} |
@@ -4485,11 +4486,8 @@ void FrameView::setInitialViewportSize(const IntSize& viewportSize) { |
return; |
m_initialViewportSize = viewportSize; |
- // TODO(rune@opera.com): Notify the viewport style resolver about the changed |
- // initial viewport: |
- // |
- // if (Document* document = m_frame->document()) |
- // document->styleEngine().initialViewportChanged(); |
+ if (Document* document = m_frame->document()) |
+ document->styleEngine().initialViewportChanged(); |
} |
int FrameView::initialViewportWidth() const { |