Changeset 167198 in webkit


Ignore:
Timestamp:
Apr 13, 2014 9:41:29 AM (10 years ago)
Author:
Simon Fraser
Message:

[iOS WK2] Hook up scrolling tree nodes when coming out of the page cache
https://bugs.webkit.org/show_bug.cgi?id=131577

Reviewed by Tim Horton.

The call to scrollingCoordinator->frameViewRootLayerDidChange() was inside
a #if !PLATFORM(IOS) block, but now that we use the ScrollingCoordinator
for WK2 we want to call this.

  • loader/HistoryController.cpp:

(WebCore::HistoryController::restoreScrollPositionAndViewState):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167197 r167198  
     12014-04-13  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [iOS WK2] Hook up scrolling tree nodes when coming out of the page cache
     4        https://bugs.webkit.org/show_bug.cgi?id=131577
     5
     6        Reviewed by Tim Horton.
     7
     8        The call to scrollingCoordinator->frameViewRootLayerDidChange() was inside
     9        a #if !PLATFORM(IOS) block, but now that we use the ScrollingCoordinator
     10        for WK2 we want to call this.
     11
     12        * loader/HistoryController.cpp:
     13        (WebCore::HistoryController::restoreScrollPositionAndViewState):
     14
    1152014-04-13  Zan Dobersek  <zdobersek@igalia.com>
    216
  • trunk/Source/WebCore/loader/HistoryController.cpp

    r166661 r167198  
    127127    m_frame.loader().client().restoreViewState();
    128128
    129     // Don't restore scroll point on iOS as FrameLoaderClient::restoreViewState() does that.
    130 #if !PLATFORM(IOS)
    131129    // FIXME: There is some scrolling related work that needs to happen whenever a page goes into the
    132130    // page cache and similar work that needs to occur when it comes out. This is where we do the work
     
    141139        }
    142140
     141#if !PLATFORM(IOS)
     142        // Don't restore scroll point on iOS as FrameLoaderClient::restoreViewState() does that.
    143143        if (!view->wasScrolledByUser()) {
    144144            if (page && m_frame.isMainFrame() && m_currentItem->pageScaleFactor())
     
    147147                view->setScrollPosition(m_currentItem->scrollPoint());
    148148        }
    149     }
    150149#endif
     150    }
    151151}
    152152
Note: See TracChangeset for help on using the changeset viewer.