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

Issue 1459943002: Clip abspos descendants correctly in all columns (not just the first). (Closed)

Created:
5 years, 1 month ago by mstensho (USE GERRIT)
Modified:
4 years, 11 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, mstensho (USE GERRIT), slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clip abspos descendants correctly in all columns (not just the first). Cannot use localToContainerPoint() for multicol content, since the flowthread hasn't yet been sliced and translated into columns. Use convertToLayerCoords() instead. Ideally, I believe everyone should do that, but that's currently not possible without introducing regressions. BUG=527709 R=chrishtr@chromium.org

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase master #

Patch Set 3 : code review - possible alternative #

Total comments: 3

Messages

Total messages: 11 (0 generated)
mstensho (USE GERRIT)
ve been hoping to find the time to figure out how to solve this properly ...
5 years, 1 month ago (2015-11-19 17:00:14 UTC) #1
mstensho (USE GERRIT)
I've been hoping to find the time to figure out how to solve this properly ...
5 years, 1 month ago (2015-11-19 18:21:10 UTC) #2
chrishtr
https://codereview.chromium.org/1459943002/diff/1/third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html File third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html (right): https://codereview.chromium.org/1459943002/diff/1/third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html#newcode2 third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html:2: <p>There should be a green square below, and no ...
5 years, 1 month ago (2015-11-19 23:31:41 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/1459943002/diff/1/third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html File third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html (right): https://codereview.chromium.org/1459943002/diff/1/third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html#newcode2 third_party/WebKit/LayoutTests/fast/multicol/abspos-in-clipped-relpos-in-second-column-expected.html:2: <p>There should be a green square below, and no ...
5 years, 1 month ago (2015-11-20 10:37:15 UTC) #4
mstensho (USE GERRIT)
ping
5 years ago (2015-12-04 14:15:37 UTC) #5
mstensho (USE GERRIT)
@chrishtr / anyone: ping again. People keep asking for a fix for this.
5 years ago (2015-12-08 16:25:37 UTC) #6
chrishtr
On 2015/12/08 at 16:25:37, mstensho wrote: > @chrishtr / anyone: ping again. People keep asking ...
5 years ago (2015-12-08 16:36:38 UTC) #7
chrishtr
https://codereview.chromium.org/1459943002/diff/1/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp File third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp (right): https://codereview.chromium.org/1459943002/diff/1/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp#newcode278 third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp:278: // TODO(mstensho): Switch to always using convertToLayerCoords() (see code ...
5 years ago (2015-12-08 22:56:07 UTC) #8
mstensho (USE GERRIT)
@chrishtr - please take a look. New patch. Not sure if I want to land ...
5 years ago (2015-12-09 16:13:44 UTC) #9
chrishtr
https://codereview.chromium.org/1459943002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right): https://codereview.chromium.org/1459943002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp#newcode955 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:955: // up. But when walking downwards (like here), we ...
5 years ago (2015-12-14 21:39:51 UTC) #10
mstensho (USE GERRIT)
4 years, 11 months ago (2016-01-05 08:55:25 UTC) #11
https://codereview.chromium.org/1459943002/diff/40001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp (right):

https://codereview.chromium.org/1459943002/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp:955: // up. But
when walking downwards (like here), we don't want that. So this isn't really a
On 2015/12/14 21:39:51, chrishtr wrote:
> Why is it generally not desired to adjust when walking downwards? Isn't it
> well-defined
> to ask that question?

When walking downwards into a multicol container, you have visual coordinates
and ENTER a flow thread coordinate space. When walking upwards out of a multicol
container, you have flow thread coordinates and LEAVE a flow thread coordinate
space.
 
> Also, this fix is independent of the PaintLayerClipper one right?

Well, this makes the code behave to PaintLayerClipper's liking. :)

But yeah, better clean up this code in separate CLs first. A new quest has begun
in https://codereview.chromium.org/1516003003/ . When everything is cleaned up,
it should be more easy to figure out how to fix this bug cleanly.

Powered by Google App Engine
This is Rietveld 408576698