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

Issue 2728263002: Omit wrapped selection for text under inline containing block. (Closed)

Created:
3 years, 9 months ago by wkorman
Modified:
3 years, 9 months ago
Reviewers:
Xianzhu, szager1
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Omit wrapped selection for text under inline containing block. If the containing block 'A' for a collection of inline text boxes is inline and the selection continues, we no longer paint a wrapped selection highlight for the last inline text box in 'A'. BUG=620298 Review-Url: https://codereview.chromium.org/2728263002 Cr-Commit-Position: refs/heads/master@{#455414} Committed: https://chromium.googlesource.com/chromium/src/+/a120b02dfcaecf58c41dd1ab19baac901249b197

Patch Set 1 #

Patch Set 2 : Sync to head. #

Patch Set 3 : Include newline for wraps within a single containing block. #

Total comments: 9

Patch Set 4 : Address TODO #

Patch Set 5 : Pixel-test-ify two flexbox tests. Remove unused #include. #

Patch Set 6 : Update baselines. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -60 lines) Patch
D third_party/WebKit/LayoutTests/fast/text/flexbox-selection-expected.html View 1 2 3 4 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/text/flexbox-selection-nested-expected.html View 1 2 3 4 1 chunk +0 lines, -33 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block.html View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block-expected.png View 1 2 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block-expected.txt View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block-rtl.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block-rtl-expected.png View 1 2 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block-rtl-expected.txt View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/text/flexbox-selection-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/text/flexbox-selection-expected.txt View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/text/flexbox-selection-nested-expected.txt View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/paint/selection/text-selection-inline-block-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/paint/selection/text-selection-inline-block-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/paint/selection/text-selection-inline-block-rtl-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/paint/selection/text-selection-inline-block-rtl-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/text/flexbox-selection-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/text/flexbox-selection-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/text/flexbox-selection-expected.txt View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/text/flexbox-selection-nested-expected.txt View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/paint/selection/text-selection-inline-block-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/paint/selection/text-selection-inline-block-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/paint/selection/text-selection-inline-block-rtl-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/paint/selection/text-selection-inline-block-rtl-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/fast/text/flexbox-selection-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/fast/text/flexbox-selection-expected.txt View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/fast/text/flexbox-selection-nested-expected.txt View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/paint/selection/text-selection-inline-block-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/paint/selection/text-selection-inline-block-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/paint/selection/text-selection-inline-block-rtl-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/paint/selection/text-selection-inline-block-rtl-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/text/flexbox-selection-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/text/flexbox-selection-expected.txt View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/text/flexbox-selection-nested-expected.txt View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/selection/text-selection-inline-block-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/selection/text-selection-inline-block-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/selection/text-selection-inline-block-rtl-expected.png View 1 2 3 4 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/selection/text-selection-inline-block-rtl-expected.txt View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win7/fast/text/flexbox-selection-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win7/fast/text/flexbox-selection-nested-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp View 1 2 3 4 1 chunk +32 lines, -9 lines 0 comments Download

Messages

Total messages: 34 (24 generated)
wkorman
https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block.html File third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block.html (right): https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block.html#newcode8 third_party/WebKit/LayoutTests/paint/selection/text-selection-inline-block.html:8: <div style="display:inline-block">x</div>y This new test (and the -rtl variant) ...
3 years, 9 months ago (2017-03-06 21:46:50 UTC) #14
Xianzhu
https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp File third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp (right): https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp#newcode223 third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp:223: toLayoutBox(LineLayoutAPIShim::layoutObjectFrom(root().block())); I think we don't need shim and cast. ...
3 years, 9 months ago (2017-03-06 22:29:24 UTC) #15
wkorman
https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp File third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp (right): https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp#newcode226 third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp:226: containingBox->getSelectionState() != SelectionBoth) On 2017/03/06 22:29:23, Xianzhu wrote: > ...
3 years, 9 months ago (2017-03-07 03:12:30 UTC) #18
Xianzhu
https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp File third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp (right): https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp#newcode226 third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp:226: containingBox->getSelectionState() != SelectionBoth) On 2017/03/07 03:12:30, wkorman wrote: > ...
3 years, 9 months ago (2017-03-07 03:55:42 UTC) #19
wkorman
https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp File third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp (right): https://codereview.chromium.org/2728263002/diff/40001/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp#newcode226 third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp:226: containingBox->getSelectionState() != SelectionBoth) On 2017/03/07 03:55:42, Xianzhu wrote: > ...
3 years, 9 months ago (2017-03-07 17:41:31 UTC) #24
wkorman
On 2017/03/07 17:41:31, wkorman wrote: > - we could decide actual flexbox behavior is better ...
3 years, 9 months ago (2017-03-07 18:04:41 UTC) #25
Xianzhu
On 2017/03/07 18:04:41, wkorman wrote: > On 2017/03/07 17:41:31, wkorman wrote: > > - we ...
3 years, 9 months ago (2017-03-07 18:54:16 UTC) #26
wkorman
On 2017/03/07 18:54:16, Xianzhu wrote: > You can either mark the test as failure and ...
3 years, 9 months ago (2017-03-07 21:49:03 UTC) #27
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/2728263002/100001
3 years, 9 months ago (2017-03-08 07:54:47 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 09:28:56 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a120b02dfcaecf58c41dd1ab19ba...

Powered by Google App Engine
This is Rietveld 408576698