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

Issue 560623002: Adjust maximum scroll bounds on FrameView to account for top controls. (Blink-side) (Closed)

Created:
6 years, 3 months ago by bokan
Modified:
6 years, 3 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Adjust maximum scroll bounds on FrameView to account for top controls. (Blink-side) The compositor adjusts the viewport bounds based on how far the top controls are shown; however, the resize of the viewport on the Blink side doesn't happen until a Resize event is received, which is heavily throttled. This means that when a commit happens before the Resize, the scroll offsets given to Blink may be outside the maximum bounds and will be incorrectly clamped. This CL adjusts FrameView's maximumScrollPosition to account for the drift in where Blink and the Compositor think the top controls are. Chromium-side: https://codereview.chromium.org/563513002 BUG=412581 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182600

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback #

Total comments: 2

Patch Set 3 : Cleared up float truncation + test #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -0 lines) Patch
M Source/core/frame/FrameView.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 2 chunks +66 lines, -0 lines 0 comments Download
M public/web/WebWidget.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
bokan
PTAL
6 years, 3 months ago (2014-09-09 23:09:15 UTC) #2
bokan
https://codereview.chromium.org/560623002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/560623002/diff/1/Source/web/WebViewImpl.cpp#newcode1689 Source/web/WebViewImpl.cpp:1689: view->setTopControlsViewportAdjustment(topControlsViewportAdjustment); There's also a Chromium-side patch that just calls ...
6 years, 3 months ago (2014-09-09 23:14:20 UTC) #3
aelias_OOO_until_Jul13
lgtm modulo minor comments https://codereview.chromium.org/560623002/diff/1/Source/core/frame/FrameView.h File Source/core/frame/FrameView.h (right): https://codereview.chromium.org/560623002/diff/1/Source/core/frame/FrameView.h#newcode498 Source/core/frame/FrameView.h:498: int m_topControlsViewportAdjustment; Please make this ...
6 years, 3 months ago (2014-09-10 01:57:29 UTC) #4
bokan
+eseidel@ for Source/core and public/web OWNER https://codereview.chromium.org/560623002/diff/1/Source/core/frame/FrameView.h File Source/core/frame/FrameView.h (right): https://codereview.chromium.org/560623002/diff/1/Source/core/frame/FrameView.h#newcode498 Source/core/frame/FrameView.h:498: int m_topControlsViewportAdjustment; On ...
6 years, 3 months ago (2014-09-10 13:51:53 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/560623002/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/560623002/diff/1/Source/web/WebViewImpl.cpp#newcode1689 Source/web/WebViewImpl.cpp:1689: view->setTopControlsViewportAdjustment(topControlsViewportAdjustment); On 2014/09/10 13:51:52, bokan wrote: > On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 15:51:46 UTC) #7
leviw_travelin_and_unemployed
When are we setting the topControlsLayoutHeight on WebViewImpl? https://codereview.chromium.org/560623002/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/560623002/diff/20001/Source/core/frame/FrameView.cpp#newcode2994 Source/core/frame/FrameView.cpp:2994: max.move(0, ...
6 years, 3 months ago (2014-09-10 20:15:51 UTC) #9
bokan
topControlsLayoutHeight gets set in RenderWidget::Resize (i.e. when we get a WebView resize). That's added in ...
6 years, 3 months ago (2014-09-15 20:30:19 UTC) #10
bokan
Friendly ping.
6 years, 3 months ago (2014-09-16 21:41:20 UTC) #12
bokan
On 2014/09/16 21:41:20, bokan wrote: > Friendly ping. Hey Levi, PTAL.
6 years, 3 months ago (2014-09-23 00:28:34 UTC) #13
bokan
On 2014/09/23 00:28:34, bokan wrote: > On 2014/09/16 21:41:20, bokan wrote: > > Friendly ping. ...
6 years, 3 months ago (2014-09-23 15:47:09 UTC) #14
leviw_travelin_and_unemployed
LGTM.
6 years, 3 months ago (2014-09-23 18:56:59 UTC) #15
bokan
+jamesr@ again for public/web
6 years, 3 months ago (2014-09-23 19:08:15 UTC) #17
jamesr
weird, but lgtm
6 years, 3 months ago (2014-09-24 04:42:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/560623002/60001
6 years, 3 months ago (2014-09-24 13:26:06 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 14:33:03 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 182600

Powered by Google App Engine
This is Rietveld 408576698