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

Issue 2002623003: Exclude position:absolute elements when picking an anchor for ScrollAnchoring (Closed)

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

Description

Exclude position:absolute elements when picking an anchor for ScrollAnchoring Only exclude ones that have top/left/right/bottom set to a non-zero value. BUG=604996 Committed: https://crrev.com/556834f09ba3e4caf3ac682330df55c03bf0ffda Cr-Commit-Position: refs/heads/master@{#397159}

Patch Set 1 #

Total comments: 4

Patch Set 2 : exclude only for non-zero top/left/bottom/right #

Total comments: 1

Patch Set 3 : nit + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -7 lines) Patch
M third_party/WebKit/Source/core/layout/ScrollAnchor.cpp View 1 2 3 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp View 1 2 3 chunks +69 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
ymalik
4 years, 6 months ago (2016-05-27 22:54:58 UTC) #2
ymalik
4 years, 6 months ago (2016-05-27 22:55:34 UTC) #5
skobes
We already have a unit test for position:absolute, maybe just update that? https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp ...
4 years, 6 months ago (2016-05-28 00:18:10 UTC) #6
skobes
Also we want to exclude only for non-zero left/top. This should hopefully let us continue ...
4 years, 6 months ago (2016-05-28 00:20:05 UTC) #7
ymalik
On 2016/05/28 00:20:05, skobes wrote: > Also we want to exclude only for non-zero left/top. ...
4 years, 6 months ago (2016-05-30 18:12:48 UTC) #8
ymalik
https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode118 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:118: candidate->container(scrollerLayoutBox(scroller), &skippedByContainerLookup); On 2016/05/28 00:18:10, skobes wrote: > I ...
4 years, 6 months ago (2016-05-30 18:13:03 UTC) #9
skobes
On 2016/05/30 18:12:48, ymalik wrote: > Excluding only for non-zero left/top seems hacky. For example, ...
4 years, 6 months ago (2016-05-31 18:03:34 UTC) #10
ymalik
@skobes PTAL :) https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode112 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:112: // Elements with absolute positioning are ...
4 years, 6 months ago (2016-05-31 22:47:01 UTC) #12
ymalik
@skobes PTAL :) https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2002623003/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode112 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:112: // Elements with absolute positioning are ...
4 years, 6 months ago (2016-05-31 22:47:02 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002623003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002623003/20001
4 years, 6 months ago (2016-05-31 22:48:47 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 03:21:50 UTC) #17
skobes
lgtm https://codereview.chromium.org/2002623003/diff/20001/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2002623003/diff/20001/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode116 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:116: if (!style->top().isZero()) nit: this would be more concise ...
4 years, 6 months ago (2016-06-01 04:38:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002623003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002623003/40001
4 years, 6 months ago (2016-06-01 14:56:41 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-01 16:33:44 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 16:35:05 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/556834f09ba3e4caf3ac682330df55c03bf0ffda
Cr-Commit-Position: refs/heads/master@{#397159}

Powered by Google App Engine
This is Rietveld 408576698