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

Issue 2248433002: Viewport resize anchoring should use the current layout viewport. (Closed)

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

Description

Viewport resize anchoring should use the current layout viewport. The current viewport resize anchor assumes the FrameView is always the layout viewport. This is not true in the setRootScroller experiment where an arbitrary <div> may become the layout viewport in RootFrameViewport. I've moved the anchoring logic into RootFrameViewport to keep this information encapsulated and used the layout viewport as reported by the RootFrameViewport class BUG=505516 Committed: https://crrev.com/d17622aad88e3646b8e91d22a8ca46308cc8a0ae Cr-Commit-Position: refs/heads/master@{#413376}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Replaced static_cast with temp variable #

Patch Set 3 : Rebase + Fixed test #

Patch Set 4 : Forgot to add test file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -38 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RootFrameViewport.cpp View 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ResizeViewportAnchor.cpp View 3 chunks +3 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/root-scroller-div.html View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
bokan
Skobes, ptal.
4 years, 4 months ago (2016-08-12 23:56:49 UTC) #3
skobes
lgtm w/ nit https://codereview.chromium.org/2248433002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2248433002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode815 third_party/WebKit/Source/core/frame/FrameView.cpp:815: ? static_cast<ScrollableArea*>(m_viewportScrollableArea.get()) Can you avoid the ...
4 years, 4 months ago (2016-08-13 00:16:11 UTC) #4
bokan
https://codereview.chromium.org/2248433002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2248433002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode815 third_party/WebKit/Source/core/frame/FrameView.cpp:815: ? static_cast<ScrollableArea*>(m_viewportScrollableArea.get()) On 2016/08/13 00:16:11, skobes wrote: > Can ...
4 years, 4 months ago (2016-08-13 00:38:22 UTC) #5
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/2248433002/20001
4 years, 4 months ago (2016-08-13 00:39:48 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/279619)
4 years, 4 months ago (2016-08-13 01:51:40 UTC) #10
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/2248433002/40001
4 years, 4 months ago (2016-08-20 22:07:07 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/213254)
4 years, 4 months ago (2016-08-20 23:16:57 UTC) #15
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/2248433002/60001
4 years, 4 months ago (2016-08-21 17:16:18 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-21 19:36:58 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-21 19:38:46 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d17622aad88e3646b8e91d22a8ca46308cc8a0ae
Cr-Commit-Position: refs/heads/master@{#413376}

Powered by Google App Engine
This is Rietveld 408576698