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

Issue 2622103002: Generalize browser controls adjustment for arbitrary scrollers. (Closed)

Created:
3 years, 11 months ago by bokan
Modified:
3 years, 11 months ago
Reviewers:
skobes
CC:
chromium-reviews, blink-reviews, kenneth.christiansen, kinuko+watch, dshwang, blink-reviews-paint_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generalize browser controls adjustment for arbitrary scrollers. When the browser controls (URL bar) are hidden/shown, they change the visible area of the viewport, allowing more or less scrolling. Until a resize occurs and the FrameView/LayoutView is resized, we keep an "adjustment" value that we use to fudge the maximumScrollOffset in the interim. When a scroller is set as the document.rootScroller, we want it to behave in the same way. This patch extends the behavior to all FrameViews and PaintLayerScrollableAreas when they become the global root scroller. The adjustment value is no longer stored in the FrameView. Instead, TopDocumentRootScrollerController uses the value stored in VisualViewport to calculate the current visible area of the viewport. BUG=505516 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2622103002 Cr-Commit-Position: refs/heads/master@{#443079} Committed: https://chromium.googlesource.com/chromium/src/+/eea21c858d184a593903840cbaaa08339f6ac603

Patch Set 1 #

Patch Set 2 : Fixed some comments #

Messages

Total messages: 18 (14 generated)
bokan
ptal
3 years, 11 months ago (2017-01-11 13:29:26 UTC) #8
skobes
lgtm
3 years, 11 months ago (2017-01-12 00:03:58 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/2622103002/20001
3 years, 11 months ago (2017-01-12 00:12:34 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 00:27:13 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/eea21c858d184a593903840cbaaa...

Powered by Google App Engine
This is Rietveld 408576698