Attempt scroll restoration anytime viewport size changes
Viewport size determines the scroll clamp boundaries so when it changes, we should retry any pending scroll restoration in case it is blocked due to clamping. This can happen when page scale changes. Removed |FrameView::clampOffsetAtScale| as it was only ever used with scale 1 and could be replaces with |ScrollableArea::clampScrollPosition|. FrameView calls the restore method directly making it unnecessary for ChromeClient to be involved. BUG=522153 Review URL: https://codereview.chromium.org/1300393003 git-svn-id: svn://svn.chromium.org/blink/trunk@201323 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment