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

Issue 1003303005: [New Multicolumn] Correct localPoint when hitting an anonymous child block. (Closed)

Created:
5 years, 9 months ago by mstensho (USE GERRIT)
Modified:
5 years, 9 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

[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

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase master #

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

Messages

Total messages: 12 (4 generated)
mstensho (USE GERRIT)
5 years, 9 months ago (2015-03-18 16:23:14 UTC) #1
dsinclair
lgtm w/ question about expectations. https://codereview.chromium.org/1003303005/diff/1/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/1003303005/diff/1/LayoutTests/TestExpectations#newcode1141 LayoutTests/TestExpectations:1141: crbug.com/408123 fast/multicol/caret-range-anonymous-block-rtl.html [ Skip ...
5 years, 9 months ago (2015-03-18 18:29:23 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/1003303005/diff/1/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/1003303005/diff/1/LayoutTests/TestExpectations#newcode1141 LayoutTests/TestExpectations:1141: crbug.com/408123 fast/multicol/caret-range-anonymous-block-rtl.html [ Skip ] On 2015/03/18 18:29:23, dsinclair ...
5 years, 9 months ago (2015-03-19 08:17:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003303005/1
5 years, 9 months ago (2015-03-19 13:00:37 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/29370)
5 years, 9 months ago (2015-03-19 13:06:30 UTC) #7
mstensho (USE GERRIT)
On 2015/03/19 13:06:30, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-19 13:11:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003303005/20001
5 years, 9 months ago (2015-03-19 13:11:47 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 14:59:32 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192173

Powered by Google App Engine
This is Rietveld 408576698