Fix the build after r169913.
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jun 2014 22:44:56 +0000 (22:44 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jun 2014 22:44:56 +0000 (22:44 +0000)
* loader/HistoryController.cpp:
(WebCore::HistoryController::restoreScrollPositionAndViewState):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169917 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/loader/HistoryController.cpp

index 3dd69f7..a634833 100644 (file)
@@ -1,3 +1,10 @@
+2014-06-12  Andy Estes  <aestes@apple.com>
+
+        Fix the build after r169913.
+
+        * loader/HistoryController.cpp:
+        (WebCore::HistoryController::restoreScrollPositionAndViewState):
+
 2014-06-12  Alex Christensen  <achristensen@webkit.org>
 
         Collect correct web timing data from CFNetwork.
index eb380d4..426cce7 100644 (file)
@@ -147,6 +147,7 @@ void HistoryController::restoreScrollPositionAndViewState()
 #if !PLATFORM(IOS)
     // Don't restore scroll point on iOS as FrameLoaderClient::restoreViewState() does that.
     if (view && !view->wasScrolledByUser()) {
+        Page* page = m_frame.page();
         if (page && m_frame.isMainFrame() && m_currentItem->pageScaleFactor())
             page->setPageScaleFactor(m_currentItem->pageScaleFactor(), m_currentItem->scrollPoint());
         else