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

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

Created:
6 years, 3 months ago by bokan
Modified:
6 years, 2 months ago
Reviewers:
jamesr
CC:
chromium-reviews, darin-cc_chromium.org, jam, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adjust maximum scroll bounds on FrameView to account for top controls. (Chromium-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. Blink-side: https://codereview.chromium.org/560623002/ BUG=412581 Committed: https://crrev.com/0c93cd876ca4a6763398cb68fbac7eef582d5db8 Cr-Commit-Position: refs/heads/master@{#297478}

Patch Set 1 #

Patch Set 2 : Cleared up floating point truncation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M content/renderer/render_widget.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
bokan
+jamesr@ for Chromium-side of already landed https://codereview.chromium.org/560623002/
6 years, 3 months ago (2014-09-24 14:35:03 UTC) #2
jamesr
lgtm, although if we're setting this here can you remind me why this parameter is ...
6 years, 3 months ago (2014-09-24 18:41:12 UTC) #3
bokan
On 2014/09/24 18:41:12, jamesr wrote: > lgtm, although if we're setting this here can you ...
6 years, 3 months ago (2014-09-24 19:11:59 UTC) #4
bokan
On 2014/09/24 19:11:59, bokan wrote: > On 2014/09/24 18:41:12, jamesr wrote: > > lgtm, although ...
6 years, 3 months ago (2014-09-24 19:14:52 UTC) #5
jamesr
If we always specify the same thing it doesn't sound too confusing. Is the timing ...
6 years, 3 months ago (2014-09-24 20:25:12 UTC) #6
bokan
On 2014/09/24 20:25:12, jamesr wrote: > If we always specify the same thing it doesn't ...
6 years, 3 months ago (2014-09-24 20:37:47 UTC) #7
bokan
On 2014/09/24 20:37:47, bokan wrote: > On 2014/09/24 20:25:12, jamesr wrote: > > If we ...
6 years, 2 months ago (2014-09-26 18:04:15 UTC) #8
bokan
Hey James, would you prefer the call to be WebWidget::resize(size, topControlsLayoutSize)? Or something else?
6 years, 2 months ago (2014-09-29 18:08:11 UTC) #9
bokan
On 2014/09/29 18:08:11, bokan wrote: > Hey James, would you prefer the call to be ...
6 years, 2 months ago (2014-09-30 18:00:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/563513002/20001
6 years, 2 months ago (2014-09-30 18:02:54 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 03858aa169abeeaffe138f155042cee3d4fcd683
6 years, 2 months ago (2014-09-30 19:20:50 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 19:21:26 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0c93cd876ca4a6763398cb68fbac7eef582d5db8
Cr-Commit-Position: refs/heads/master@{#297478}

Powered by Google App Engine
This is Rietveld 408576698