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

Issue 2436283002: Fix LayoutObject::mapLocalToAncestor() for fixed under absolute (Closed)

Created:
4 years, 2 months ago by Xianzhu
Modified:
4 years, 1 month ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mac-reviews_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix LayoutObject::mapLocalToAncestor() for fixed under absolute When mapping from a fixed to an absolute ancestor, mapLocalToAncestor() deals with the case that the ancestor is skipped by fixed's container, but forgot to adjust fixed-position offset. Also fix the similar issue of mapAncestorToLocal(). BUG=656172 TEST=MapCoordinatesTest.FixedPosIn(Fixed|Absolute)PosScrollView TEST=paint/invalidation/fixed-with-border-under-composited-absolute-scrolled.html NOTRY=true (to workaround OOM of android bot) Committed: https://crrev.com/a4969c67949640d4a7fbe2a2ea91cb4506aaa218 Cr-Commit-Position: refs/heads/master@{#427177}

Patch Set 1 #

Patch Set 2 : Remove workaround for bug 598762 #

Patch Set 3 : - #

Total comments: 2

Patch Set 4 : s/o/conainer/ #

Patch Set 5 : Rebase #

Patch Set 6 : Rebaseline after rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -46 lines) Patch
A third_party/WebKit/LayoutTests/paint/invalidation/fixed-under-composited-absolute-scrolled-expected.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/fixed-under-composited-absolute-scrolled-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/fixed-under-composited-fixed-scrolled-expected.html View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/paint/invalidation/fixed-with-border-under-composited-absolute-scrolled.html View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/fixed-with-border-under-composited-absolute-scrolled-expected.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/paint/invalidation/fixed-with-border-under-composited-absolute-scrolled-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/paint/invalidation/fixed-under-composited-absolute-scrolled-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac-mac10.9/paint/invalidation/fixed-under-composited-fixed-scrolled-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/fixed-under-composited-absolute-scrolled-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/fixed-under-composited-fixed-scrolled-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/paint/invalidation/fixed-under-composited-absolute-scrolled-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/paint/invalidation/fixed-under-composited-fixed-scrolled-expected.png View Binary file 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 6 chunks +45 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp View 1 chunk +60 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp View 1 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
Xianzhu
4 years, 2 months ago (2016-10-21 21:28:11 UTC) #9
chrishtr
lgtm https://codereview.chromium.org/2436283002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2436283002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2043 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2043: const LayoutObject* o = container(ancestor, &ancestorSkipped); Could you ...
4 years, 2 months ago (2016-10-21 22:40:32 UTC) #10
Xianzhu
https://codereview.chromium.org/2436283002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2436283002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2043 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2043: const LayoutObject* o = container(ancestor, &ancestorSkipped); On 2016/10/21 22:40:32, ...
4 years, 2 months ago (2016-10-21 22:52:00 UTC) #11
chrishtr
On 2016/10/21 at 22:52:00, wangxianzhu wrote: > https://codereview.chromium.org/2436283002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp > File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/2436283002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2043 ...
4 years, 2 months ago (2016-10-21 22:54:15 UTC) #12
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/2436283002/60001
4 years, 2 months ago (2016-10-22 00:00:46 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/291788) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-22 00:04:49 UTC) #19
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/2436283002/80001
4 years, 1 month ago (2016-10-24 16:22:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/320977)
4 years, 1 month ago (2016-10-24 17:55:54 UTC) #24
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/2436283002/100001
4 years, 1 month ago (2016-10-24 18:19:41 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/151484)
4 years, 1 month ago (2016-10-24 22:29:48 UTC) #29
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/2436283002/100001
4 years, 1 month ago (2016-10-24 23:07:54 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-24 23:16:48 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 23:18:29 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a4969c67949640d4a7fbe2a2ea91cb4506aaa218
Cr-Commit-Position: refs/heads/master@{#427177}

Powered by Google App Engine
This is Rietveld 408576698