Going back after resizing causes scroll knob to appear in the middle of the page
[WebKit-https.git] / Source / WebCore / history / PageCache.cpp
index bcbdef27ad66e01481e755c706d83d751bbf1606..94eadaa46f9f665c9f9411c0edf9bc335f1ad13f 100644 (file)
@@ -399,6 +399,15 @@ void PageCache::markPagesForDeviceOrPageScaleChanged(Page& page)
     }
 }
 
+void PageCache::markPagesForContentsSizeChanged(Page& page)
+{
+    for (auto& item : m_items) {
+        CachedPage& cachedPage = *item->m_cachedPage;
+        if (&page.mainFrame() == &cachedPage.cachedMainFrame()->view()->frame())
+            cachedPage.markForContentsSizeChanged();
+    }
+}
+
 #if ENABLE(VIDEO_TRACK)
 void PageCache::markPagesForCaptionPreferencesChanged()
 {