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

Issue 2706673002: Mark elements as viewport constrained when they become sticky positioned (Closed)

Created:
3 years, 10 months ago by smcgruer
Modified:
3 years, 10 months ago
Reviewers:
flackr, chrishtr, pdr.
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mark elements as viewport constrained when they become sticky positioned Previously changing an element from sticky to non-sticky would remove it from the set of viewport constrained elements, but the inverse was not honored. This caused broken behavior if you cycled the position for an element between sticky and any other position. BUG=685658 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2706673002 Cr-Commit-Position: refs/heads/master@{#452467} Committed: https://chromium.googlesource.com/chromium/src/+/c4550918a382319dd463b8ca7735f5b32f39ccbe

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change approach as per reviewer comments #

Patch Set 3 : Fix weirdly formatted comment #

Patch Set 4 : Add LayoutTest #

Total comments: 12

Patch Set 5 : Address reviewer comments #

Total comments: 4

Patch Set 6 : Layout test; put the hidden overflow on html not body #

Patch Set 7 : Address inner requestAnimationFrame nit #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -14 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameViewTest.cpp View 1 2 3 4 3 chunks +38 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp View 1 2 3 4 5 6 7 1 chunk +17 lines, -13 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
smcgruer
I'm having trouble reproducing http://output.jsbin.com/xomuruk/60 as a LayoutTest that consistently fails on current Chrome (e.g. ...
3 years, 10 months ago (2017-02-19 00:09:37 UTC) #2
flackr
https://codereview.chromium.org/2706673002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/2706673002/diff/1/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode402 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:402: frameView->addViewportConstrainedObject(this); There's a call to add sticky position items ...
3 years, 10 months ago (2017-02-21 00:38:15 UTC) #3
smcgruer
Still working on a LayoutTest; it currently reproduces the bug only 75% of the time ...
3 years, 10 months ago (2017-02-21 15:50:05 UTC) #5
smcgruer
I've added a layout test which does work (e.g. fails on ToT, succeeds after this ...
3 years, 10 months ago (2017-02-21 16:34:30 UTC) #6
flackr
https://codereview.chromium.org/2706673002/diff/60001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html File third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html (right): https://codereview.chromium.org/2706673002/diff/60001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html#newcode17 third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html:17: background-color: green; Can we merge .relative and .box since ...
3 years, 10 months ago (2017-02-22 14:45:42 UTC) #7
smcgruer
https://codereview.chromium.org/2706673002/diff/60001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html File third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html (right): https://codereview.chromium.org/2706673002/diff/60001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html#newcode17 third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change-expected.html:17: background-color: green; On 2017/02/22 14:45:42, flackr wrote: > Can ...
3 years, 10 months ago (2017-02-22 15:26:32 UTC) #8
flackr
https://codereview.chromium.org/2706673002/diff/80001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html File third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html (right): https://codereview.chromium.org/2706673002/diff/80001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html#newcode13 third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html:13: overflow: hidden; /* hide scrollbars */ I just noticed ...
3 years, 10 months ago (2017-02-22 15:43:02 UTC) #9
smcgruer
https://codereview.chromium.org/2706673002/diff/80001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html File third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html (right): https://codereview.chromium.org/2706673002/diff/80001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html#newcode13 third_party/WebKit/LayoutTests/fast/css/sticky/sticky-style-change.html:13: overflow: hidden; /* hide scrollbars */ On 2017/02/22 15:43:02, ...
3 years, 10 months ago (2017-02-22 16:14:22 UTC) #10
flackr
lgtm
3 years, 10 months ago (2017-02-22 16:15:41 UTC) #11
smcgruer
Adding Chris for blink OWNERS
3 years, 10 months ago (2017-02-22 18:20:55 UTC) #21
pdr.
LGTM
3 years, 10 months ago (2017-02-23 05:45:09 UTC) #23
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/2706673002/140001
3 years, 10 months ago (2017-02-23 12:00:55 UTC) #26
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 12:06:19 UTC) #29
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/c4550918a382319dd463b8ca7735...

Powered by Google App Engine
This is Rietveld 408576698