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

Issue 2184333002: Fix scroll anchoring during viewport resize. (Closed)

Created:
4 years, 4 months ago by skobes
Modified:
4 years, 4 months ago
Reviewers:
bokan
CC:
chromium-reviews, blink-reviews, kinuko+watch, ymalik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix scroll anchoring during viewport resize. WebView::resizeWithTopControls does a synchronous layout. Anchoring scrolls performed during this layout were getting clobbered by ResizeViewportAnchor, whose purpose is to scroll the viewports to preserve their combined position (as reported by RootFrameViewport) after bounds-clamping to their new sizes. After this change, ResizeViewportAnchor tracks the resize-induced scroll delta while ignoring other scrolls. BUG=626258, 612305 Committed: https://crrev.com/6913f420989be6dbaed45bd7e1b60042ff119d70 Cr-Commit-Position: refs/heads/master@{#408439}

Patch Set 1 #

Total comments: 4

Patch Set 2 : add comment on m_drift #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -93 lines) Patch
M third_party/WebKit/Source/web/ResizeViewportAnchor.h View 1 1 chunk +47 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/ResizeViewportAnchor.cpp View 3 chunks +41 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/web/RotationViewportAnchor.h View 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/RotationViewportAnchor.cpp View 1 chunk +2 lines, -1 line 0 comments Download
D third_party/WebKit/Source/web/ViewportAnchor.h View 1 chunk +0 lines, -60 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 5 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/icb-relative-content.html View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 18 (11 generated)
skobes
4 years, 4 months ago (2016-07-28 03:16:10 UTC) #4
bokan
lgtm % question and request for comment. https://codereview.chromium.org/2184333002/diff/1/third_party/WebKit/Source/web/ResizeViewportAnchor.cpp File third_party/WebKit/Source/web/ResizeViewportAnchor.cpp (right): https://codereview.chromium.org/2184333002/diff/1/third_party/WebKit/Source/web/ResizeViewportAnchor.cpp#newcode25 third_party/WebKit/Source/web/ResizeViewportAnchor.cpp:25: frameView->resize(size); I ...
4 years, 4 months ago (2016-07-28 14:55:55 UTC) #7
skobes
https://codereview.chromium.org/2184333002/diff/1/third_party/WebKit/Source/web/ResizeViewportAnchor.cpp File third_party/WebKit/Source/web/ResizeViewportAnchor.cpp (right): https://codereview.chromium.org/2184333002/diff/1/third_party/WebKit/Source/web/ResizeViewportAnchor.cpp#newcode25 third_party/WebKit/Source/web/ResizeViewportAnchor.cpp:25: frameView->resize(size); On 2016/07/28 14:55:55, bokan wrote: > I was ...
4 years, 4 months ago (2016-07-28 15:45:50 UTC) #8
bokan
Ok, thanks for the explanation. I got a little confused in endScope() but I get ...
4 years, 4 months ago (2016-07-28 18:23:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2184333002/20001
4 years, 4 months ago (2016-07-28 18:32:29 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-28 18:37:35 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 18:40:25 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6913f420989be6dbaed45bd7e1b60042ff119d70
Cr-Commit-Position: refs/heads/master@{#408439}

Powered by Google App Engine
This is Rietveld 408576698