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

Issue 2761413002: Fix position of floating layer whose containing block is also floating (Closed)

Created:
3 years, 9 months ago by Xianzhu
Modified:
3 years, 9 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix position of layer with floating ancestor within inline parent layer <span style="position: relative"> ... <div style="float: left"> ... <target layer> ... </div> ... </span> Because of the floating ancestor, the containing layer of target layer is not the span, but the layer found in the containing block chain. BUG=703666, 703481 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2761413002 Cr-Commit-Position: refs/heads/master@{#458857} Committed: https://chromium.googlesource.com/chromium/src/+/be8909e4d0dfe024e1b39f5abf195e63d97652ae

Patch Set 1 #

Total comments: 2

Patch Set 2 : - #

Patch Set 3 : - #

Patch Set 4 : A safer version, for merge. Need cleanup followup #

Patch Set 5 : TODO in GraphicsLayerUpdater #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -3 lines) Patch
M third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 2 chunks +26 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerTest.cpp View 1 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
Xianzhu
3 years, 9 months ago (2017-03-21 21:10:27 UTC) #4
chrishtr
https://codereview.chromium.org/2761413002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (left): https://codereview.chromium.org/2761413002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp#oldcode874 third_party/WebKit/Source/core/paint/PaintLayer.cpp:874: layoutObject.isFloatingWithNonContainingBlockParent()) { Do the other callsites of isFloatingWithNonContainingBlockParent() need ...
3 years, 9 months ago (2017-03-21 21:48:46 UTC) #6
Xianzhu
https://codereview.chromium.org/2761413002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (left): https://codereview.chromium.org/2761413002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp#oldcode874 third_party/WebKit/Source/core/paint/PaintLayer.cpp:874: layoutObject.isFloatingWithNonContainingBlockParent()) { On 2017/03/21 21:48:46, chrishtr wrote: > Do ...
3 years, 9 months ago (2017-03-22 15:03:15 UTC) #12
chrishtr
It looks to me like the core issue is that LayoutObject::isFloatingWithNonContainingBlockParent is answering the question ...
3 years, 9 months ago (2017-03-22 17:20:15 UTC) #13
Xianzhu
On 2017/03/22 17:20:15, chrishtr wrote: > It looks to me like the core issue is ...
3 years, 9 months ago (2017-03-22 17:29:51 UTC) #14
Xianzhu
On 2017/03/22 17:29:51, Xianzhu wrote: > On 2017/03/22 17:20:15, chrishtr wrote: > > It looks ...
3 years, 9 months ago (2017-03-22 17:34:46 UTC) #15
chrishtr
This CL looks good. I'm not sure why patch set 4 is better than patch ...
3 years, 9 months ago (2017-03-22 18:13:04 UTC) #16
chrishtr
lgtm LGTM with TODO added. In offline discussion, we agreed the risk of patch set ...
3 years, 9 months ago (2017-03-22 18:26:54 UTC) #17
Xianzhu
On 2017/03/22 18:13:04, chrishtr wrote: > > Also, per offline discussion, could you add a ...
3 years, 9 months ago (2017-03-22 18:30:04 UTC) #18
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/2761413002/80001
3 years, 9 months ago (2017-03-22 18:30:47 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 20:18:41 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/be8909e4d0dfe024e1b39f5abf19...

Powered by Google App Engine
This is Rietveld 408576698