Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Issue 1300393003: Attempt scroll restoration anytime viewport size changes (Closed)

Created:
5 years, 4 months ago by majidvp
Modified:
5 years, 3 months ago
Reviewers:
Nate Chapin, skobes
CC:
blink-reviews, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, kinuko+watch, bokan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201323

Patch Set 1 #

Patch Set 2 : Fix minor bug #

Total comments: 3

Patch Set 3 : s/page()->frameHost()/m_frame->host()/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -29 lines) Patch
M Source/core/frame/FrameView.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 7 chunks +14 lines, -24 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
majidvp
5 years, 3 months ago (2015-08-24 12:52:45 UTC) #2
Nate Chapin
This seems reasonable to me, but given my limited knowledge of scrolling, I'd appreciate a ...
5 years, 3 months ago (2015-08-24 17:18:18 UTC) #4
skobes
Will this do anything strange to window resizing on desktop? In general, resizing the window ...
5 years, 3 months ago (2015-08-24 18:50:24 UTC) #5
majidvp
On 2015/08/24 18:50:24, skobes wrote: > Will this do anything strange to window resizing on ...
5 years, 3 months ago (2015-08-24 19:30:37 UTC) #6
skobes
lgtm
5 years, 3 months ago (2015-08-24 19:42:39 UTC) #7
majidvp
japhet@: PTAL https://codereview.chromium.org/1300393003/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1300393003/diff/20001/Source/core/frame/FrameView.cpp#newcode411 Source/core/frame/FrameView.cpp:411: page()->frameHost().visualViewport().mainFrameDidChangeSize(); On 2015/08/24 17:18:18, Nate Chapin wrote: ...
5 years, 3 months ago (2015-08-25 19:12:42 UTC) #8
Nate Chapin
lgtm
5 years, 3 months ago (2015-08-27 16:10:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300393003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300393003/40001
5 years, 3 months ago (2015-08-27 16:51:18 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-08-27 17:56:45 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201323

Powered by Google App Engine
This is Rietveld 408576698