Going back after resizing causes scroll knob to appear in the middle of the page
[WebKit-https.git] / Source / WebCore / history / CachedPage.cpp
index ef71ee6c1433bd1e94b05c3e08ecf678cc6682b5..e30fc10b811a83d387c1f3e3be2cafea089aa88f 100644 (file)
@@ -116,6 +116,11 @@ void CachedPage::restore(Page& page)
         page.captionPreferencesChanged();
 #endif
 
+    if (m_needsUpdateContentsSize) {
+        if (FrameView* frameView = page.mainFrame().view())
+            frameView->updateContentsSize();
+    }
+
     clear();
 }
 
@@ -130,6 +135,7 @@ void CachedPage::clear()
     m_needsCaptionPreferencesChanged = false;
 #endif
     m_needsDeviceOrPageScaleChanged = false;
+    m_needsUpdateContentsSize = false;
 }
 
 bool CachedPage::hasExpired() const