|
[New Multicolumn] Correct localPoint when hitting an anonymous child block.
If Layer::hitTestContents() detects a hit, but we have failed to pinpoint it to
a DOM node (because we only found anonymous layout objects), there's code to
locate the nearest ancestor DOM node above the layer, and store it. But there's
no code to actually set the corresponding localPoint (and that sounds like a
tricky task, anyway), which means that text selecting and caretRangeFromPoint()
will suffer.
Add a work-around for flow thread layers. We can just report that didn't hit
anything so that we continue and hit a sibling column set instead, and thus set
the right localPoint (because the column set is in the same layer as the
multicol container, and the multicol container does have a DOM node).
Note that we should no longer get here for positioned generated content, like
the old comment suggested, because generated content now inserts pseudo nodes,
instead of creating anonymous layout objects. So it's actually a bit unclear if
we can end up here at all in other cases than multicol (which is now handled
properly-ish).
Re-enable an old test that now passes, and add some new ones.
BUG= 461352
R=dsinclair@chromium.org,jchaffraix@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192173
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+434 lines, -7 lines) |
Patch |
|
M |
LayoutTests/TestExpectations
|
View
|
1
|
4 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/caret-range-anonymous-block.html
|
View
|
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/caret-range-anonymous-block-expected.txt
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/caret-range-anonymous-block-rtl.html
|
View
|
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/caret-range-anonymous-block-rtl-expected.txt
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-lr/caret-range-anonymous-block.html
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-lr/caret-range-anonymous-block-expected.txt
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-lr/caret-range-anonymous-block-rtl.html
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-lr/caret-range-anonymous-block-rtl-expected.txt
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-rl/caret-range-anonymous-block.html
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-rl/caret-range-anonymous-block-expected.txt
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-rl/caret-range-anonymous-block-rtl.html
|
View
|
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/multicol/vertical-rl/caret-range-anonymous-block-rtl-expected.txt
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/DeprecatedPaintLayer.cpp
|
View
|
1
|
1 chunk |
+15 lines, -5 lines |
0 comments
|
Download
|
Total messages: 12 (4 generated)
|