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

Issue 1971423002: Implement bounce suppression in ScrollAnchor. (Closed)

Created:
4 years, 7 months ago by skobes
Modified:
4 years, 7 months ago
Reviewers:
ymalik, ojan
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement bounce suppression in ScrollAnchor. An element can "bounce", by making the inverse of its last movement, when a scroll anchoring adjustment interacts with a scroll event handler that changes layout at a scroll offset threshold. ScrollAnchor now detects bounces by tracking the most recent adjustment and the element that triggered it (even if we have anchored to a different element since then), and suppresses repeat bounces. BUG=598233, 601906, 603376 Committed: https://crrev.com/2fd28b5102e73c49b3891d9bc7c05ffda979e2ea Cr-Commit-Position: refs/heads/master@{#394552}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : address ymalik review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -46 lines) Patch
A third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html View 1 1 chunk +98 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.h View 3 chunks +45 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.cpp View 1 5 chunks +102 lines, -33 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
skobes
4 years, 7 months ago (2016-05-14 00:56:06 UTC) #6
ymalik
https://codereview.chromium.org/1971423002/diff/60001/third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html File third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html (right): https://codereview.chromium.org/1971423002/diff/60001/third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html#newcode2 third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html:2: <script src="../../../resources/js-test.js"></script> I think we want to write tests ...
4 years, 7 months ago (2016-05-16 17:34:41 UTC) #7
skobes
https://codereview.chromium.org/1971423002/diff/60001/third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html File third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html (right): https://codereview.chromium.org/1971423002/diff/60001/third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html#newcode2 third_party/WebKit/LayoutTests/fast/layout/scroll-anchoring/onscroll-bouncing.html:2: <script src="../../../resources/js-test.js"></script> On 2016/05/16 17:34:40, ymalik1 wrote: > I ...
4 years, 7 months ago (2016-05-18 01:24:31 UTC) #8
ymalik
Thanks, lgtm!
4 years, 7 months ago (2016-05-18 18:07:45 UTC) #9
skobes
Thanks, will wait for Ojan before submitting.
4 years, 7 months ago (2016-05-18 19:21:42 UTC) #10
ojan
lgtm
4 years, 7 months ago (2016-05-18 21:20:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971423002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971423002/80001
4 years, 7 months ago (2016-05-18 21:21:43 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 7 months ago (2016-05-18 21:27:30 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 21:30:30 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2fd28b5102e73c49b3891d9bc7c05ffda979e2ea
Cr-Commit-Position: refs/heads/master@{#394552}

Powered by Google App Engine
This is Rietveld 408576698