Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index f2b468300dc3cdbb1f46b609014d9e16ae27d659..e64b8515c5e5c55354c0f498a9cbc924146d75ac 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -3097,8 +3097,8 @@ void WebViewImpl::resetScrollAndScaleState() |
// Clear out the values for the current history item. This will prevent the history item from clobbering the |
// value determined during page scale initialization, which may be less than 1. |
- page()->mainFrame()->loader().history()->saveDocumentAndScrollState(); |
- page()->mainFrame()->loader().history()->clearScrollPositionAndViewState(); |
+ page()->history()->saveDocumentAndScrollState(page()->mainFrame()); |
+ page()->history()->clearScrollPositionAndViewState(); |
m_pageScaleConstraintsSet.setNeedsReset(true); |
// Clobber saved scales and scroll offsets. |