| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index d9edd26cbce9901db68dd8d98bc47d21d9886430..b1998791ff28fd14a02cbeb4c4618bb407c7361f 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3106,8 +3106,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.
|
|
|