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

Issue 2803593007: Fix position:sticky location bug when scroller is not a stacking context (Closed)

Created:
3 years, 8 months ago by flackr
Modified:
3 years, 8 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3029
Project:
chromium
Visibility:
Public.

Description

Fix position:sticky location bug when scroller is not a stacking context This was broken in http://crrev.com/e481938 when I added code to correct for scroll offset in intermediate layers - that logic is invalid if we arent a LayerTree descendent of the scroller. The reason that we didn't spot that this was broken is that we keep using will-change:transform to force-enable compositing of elements, but this also creates a stacking context. For now I have switched this to backface-visibility:hidden, which isn't perfect but at least doesn't create a stacking context. BUG=699137, 706455 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2765503003 Cr-Commit-Position: refs/heads/master@{#459546} (cherry picked from commit d5514f08a923485a8ef2a58cab355893d0e55fcb) Review-Url: https://codereview.chromium.org/2803593007 . Cr-Commit-Position: refs/branch-heads/3029@{#609} Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471} Committed: https://chromium.googlesource.com/chromium/src/+/13a8712c4430293f11cca14eb50eaca5fd640dec

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers-expected.html View 1 chunk +2 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers-stacking-context.html View 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-enclosing-layers-stacking-context-expected.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-expected.html View 1 chunk +2 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-stacking-context.html View 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/compositing/overflow/composited-sticky-element-stacking-context-expected.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp View 2 chunks +60 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (2 generated)
flackr
3 years, 8 months ago (2017-04-06 18:44:46 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
13a8712c4430293f11cca14eb50eaca5fd640dec.

Powered by Google App Engine
This is Rietveld 408576698