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

Issue 2173963002: Ensure that we consistently check contains: paint for fixed position containment. (Closed)

Created:
4 years, 5 months ago by flackr
Modified:
4 years, 4 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_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

Ensure that we consistently check contains: paint for fixed position containment. contains: paint; should contain fixed position descendants, however we had only updated this check in one place while we have many other places in the code which simply checked for having transform related properties. This patch attempts to unify all of these code paths to call through ComputedStyle::canContainFixedPositionObjects. TEST=fast/css/containment/paint-containment-with-fixed-position-scrolled.html, LayoutGeometryMapTest.ContainsFixedPositionTest, MapCoordinatesTest.FixedPosInTransform, MapCoordinatesTest.FixedPosInContainPaint BUG=619999 Committed: https://crrev.com/139b50e91d0d86ad4ee31957a003dad264f38435 Cr-Commit-Position: refs/heads/master@{#408002}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add unit test for fixed position containment in LayoutGeometryMap. #

Patch Set 3 : Add tests for mapLocalToAncestor and mapAncestorToLocal. #

Patch Set 4 : Remove trailing whitespace #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -36 lines) Patch
A + third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html View 1 2 1 chunk +14 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled-expected.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGeometryMapStep.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp View 1 2 3 1 chunk +70 lines, -0 lines 5 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 3 chunks +2 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp View 1 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/rgm_contains_fixed_position_test.html View 1 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
flackr
Hi Chris, Can you take a look at this patch? Paint containment is supposed to ...
4 years, 5 months ago (2016-07-22 18:28:30 UTC) #4
chrishtr
Looks great! A nice cleanup in addition to the bug fix. Could you add unittests ...
4 years, 5 months ago (2016-07-22 20:38:22 UTC) #7
flackr
On 2016/07/22 at 20:38:22, chrishtr wrote: > Looks great! A nice cleanup in addition to ...
4 years, 5 months ago (2016-07-25 21:00:31 UTC) #10
chrishtr
https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp File third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp (right): https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp#newcode509 third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp:509: mappedPoint = mapAncestorToLocal(target, view, FloatPoint(0, 100)); Shouldn't this be ...
4 years, 4 months ago (2016-07-26 18:11:03 UTC) #19
flackr
https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp File third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp (right): https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp#newcode509 third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp:509: mappedPoint = mapAncestorToLocal(target, view, FloatPoint(0, 100)); On 2016/07/26 at ...
4 years, 4 months ago (2016-07-26 21:06:51 UTC) #20
chrishtr
https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp File third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp (right): https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp#newcode509 third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp:509: mappedPoint = mapAncestorToLocal(target, view, FloatPoint(0, 100)); On 2016/07/26 at ...
4 years, 4 months ago (2016-07-26 21:49:11 UTC) #21
flackr
https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp File third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp (right): https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp#newcode509 third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp:509: mappedPoint = mapAncestorToLocal(target, view, FloatPoint(0, 100)); On 2016/07/26 at ...
4 years, 4 months ago (2016-07-26 22:36:11 UTC) #22
chrishtr
lgtm https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp File third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp (right): https://codereview.chromium.org/2173963002/diff/60001/third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp#newcode509 third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp:509: mappedPoint = mapAncestorToLocal(target, view, FloatPoint(0, 100)); On 2016/07/26 ...
4 years, 4 months ago (2016-07-26 23:24:56 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/2173963002/60001
4 years, 4 months ago (2016-07-26 23:29:31 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-27 01:12:18 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 01:16:43 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/139b50e91d0d86ad4ee31957a003dad264f38435
Cr-Commit-Position: refs/heads/master@{#408002}

Powered by Google App Engine
This is Rietveld 408576698