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

Issue 978603003: [New Multicolumn] Make positionForPoint() work. (Closed)

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

Description

[New Multicolumn] Make positionForPoint() work. When we decide to look "inside" a column set for text content, convert the visual point to a flow thread point, and then redirect to the flow thread. The flow thread is where the actual content is; column sets are always childless. Also make sure that we don't enter flow threads directly, since they are not visual. This improves text selecting when hitting something outside the columns (in the area around the multicol container, or in gaps between columns). Re-enable some old tests that now pass because of this change. The old (current) multicol implementation deals with this in LayoutBlock::adjustPointToColumnContents(). BUG=461352 R=dsinclair@chromium.org,jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191869

Patch Set 1 #

Patch Set 2 : rebase master #

Total comments: 6

Patch Set 3 : Skip tests below last column. Results are platform-specific (shouldMoveCaretToHorizontalBoundaryWhe… #

Patch Set 4 : code review #

Total comments: 10

Patch Set 5 : code review #2 #

Patch Set 6 : More tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1668 lines, -11 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 4 chunks +13 lines, -10 lines 0 comments Download
A LayoutTests/fast/multicol/caret-range-outside-columns.html View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/caret-range-outside-columns-expected.txt View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/caret-range-outside-columns-rtl.html View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/caret-range-outside-columns-rtl-expected.txt View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-lr/caret-range-outside-columns.html View 1 2 3 4 5 1 chunk +95 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-lr/caret-range-outside-columns-expected.txt View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-lr/caret-range-outside-columns-rtl.html View 1 2 3 4 5 1 chunk +97 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-lr/caret-range-outside-columns-rtl-expected.txt View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-rl/caret-range-outside-columns.html View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-rl/caret-range-outside-columns-expected.txt View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-rl/caret-range-outside-columns-rtl.html View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/vertical-rl/caret-range-outside-columns-rtl-expected.txt View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x.html View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-expected.txt View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-rtl.html View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-rtl-expected.txt View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-rtl-vertical-rl.html View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-rtl-vertical-rl-expected.txt View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-vertical-rl.html View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-x-vertical-rl-expected.txt View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-y.html View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-y-expected.txt View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-y-rtl.html View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-y-rtl-expected.txt View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-y-rtl-vertical-rl.html View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A LayoutTests/fast/pagination/caret-range-outside-paged-y-rtl-vertical-rl-expected.txt View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutBlock.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutMultiColumnSet.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutMultiColumnSet.cpp View 1 3 chunks +16 lines, -0 lines 0 comments Download
M Source/core/layout/MultiColumnFragmentainerGroup.h View 3 chunks +7 lines, -0 lines 0 comments Download
M Source/core/layout/MultiColumnFragmentainerGroup.cpp View 2 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
mstensho (USE GERRIT)
Please take a look. I intend to add more tests (for direction and writing modes), ...
5 years, 9 months ago (2015-03-03 22:33:59 UTC) #1
mstensho (USE GERRIT)
@jchaffraix: ping
5 years, 9 months ago (2015-03-09 10:28:50 UTC) #2
Julien - ping for review
https://codereview.chromium.org/978603003/diff/20001/LayoutTests/fast/multicol/caret-range-outside-columns.html File LayoutTests/fast/multicol/caret-range-outside-columns.html (right): https://codereview.chromium.org/978603003/diff/20001/LayoutTests/fast/multicol/caret-range-outside-columns.html#newcode8 LayoutTests/fast/multicol/caret-range-outside-columns.html:8: #log { position:absolute; bottom:0; max-height:50%; overflow:auto; } overflow: auto? ...
5 years, 9 months ago (2015-03-09 15:49:03 UTC) #3
mstensho (USE GERRIT)
@jchaffraix - please have another look. (sorry about the delay; I'm not working a lot ...
5 years, 9 months ago (2015-03-12 11:43:27 UTC) #4
Julien - ping for review
lgtm with the extra tests https://codereview.chromium.org/978603003/diff/60001/LayoutTests/fast/multicol/caret-range-outside-columns.html File LayoutTests/fast/multicol/caret-range-outside-columns.html (right): https://codereview.chromium.org/978603003/diff/60001/LayoutTests/fast/multicol/caret-range-outside-columns.html#newcode4 LayoutTests/fast/multicol/caret-range-outside-columns.html:4: #mc { -webkit-columns:3; -webkit-column-gap:20px; ...
5 years, 9 months ago (2015-03-12 14:13:00 UTC) #5
mstensho (USE GERRIT)
https://codereview.chromium.org/978603003/diff/60001/LayoutTests/fast/multicol/caret-range-outside-columns.html File LayoutTests/fast/multicol/caret-range-outside-columns.html (right): https://codereview.chromium.org/978603003/diff/60001/LayoutTests/fast/multicol/caret-range-outside-columns.html#newcode4 LayoutTests/fast/multicol/caret-range-outside-columns.html:4: #mc { -webkit-columns:3; -webkit-column-gap:20px; width:280px; margin:20px 100px; font:20px/1 Ahem; ...
5 years, 9 months ago (2015-03-13 09:34:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/978603003/100001
5 years, 9 months ago (2015-03-13 20:08:45 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-13 21:48:16 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191869

Powered by Google App Engine
This is Rietveld 408576698