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

Issue 2594983002: Don't paint underline or selections over ellipsis in mixed-flow contexts (Closed)

Created:
4 years ago by rhogan
Modified:
3 years, 11 months ago
Reviewers:
eae, szager1
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't paint underline or selections over ellipsis in mixed-flow contexts Also, ensure the selected text is painted correctly when an ellipsis is present in a mixed-flow context (e.g. ltr text in an rtl container). BUG=642454, 642450, 642460 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/8691b058b8f8570128d24b4af3c43b3e2c0151e4 Cr-Commit-Position: refs/heads/master@{#441486}

Patch Set 1 #

Patch Set 2 : bug 642454 #

Patch Set 3 : bug 642454 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -27 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-expected.txt View 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-ltr-mixed.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-ltr-mixed-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-ltr-mixed-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-rtl.html View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-rtl-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-rtl-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-rtl-mixed.html View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-rtl-mixed-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/dont-select-text-overflow-ellipsis-when-wrapping-rtl-mixed-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-ltr-2.html View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-ltr-2-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-ltr-2-expected.txt View 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2-expected.txt View 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ellipsis-mixed-text-in-ltr-flow-underline-2.html View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ellipsis-mixed-text-in-ltr-flow-underline-2-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ellipsis-mixed-text-in-ltr-flow-underline-2-expected.txt View 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ellipsis-mixed-text-in-rtl-flow-underline-2.html View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ellipsis-mixed-text-in-rtl-flow-underline-2-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ellipsis-mixed-text-in-rtl-flow-underline-2-expected.txt View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/editing/selection/select-text-overflow-ellipsis-mixed-in-ltr-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/text/ellipsis-mixed-text-in-ltr-flow-underline-expected.png View Binary file 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 6 chunks +38 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TextPainter.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TextPainter.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
rhogan
4 years ago (2016-12-21 14:29:33 UTC) #7
rhogan
4 years ago (2016-12-21 17:33:43 UTC) #9
rhogan
Hi szager - would you have time to look at this in eae's absence?
4 years ago (2016-12-23 10:14:47 UTC) #18
eae
Very nice, LGTM!
3 years, 11 months ago (2017-01-02 18:35:50 UTC) #19
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/2594983002/20001
3 years, 11 months ago (2017-01-02 19:31:55 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/356729)
3 years, 11 months ago (2017-01-02 21:00:53 UTC) #23
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/2594983002/40001
3 years, 11 months ago (2017-01-04 20:56:29 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
3 years, 11 months ago (2017-01-04 22:21:36 UTC) #29
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8691b058b8f8570128d24b4af3c43b3e2c0151e4 Cr-Commit-Position: refs/heads/master@{#441486}
3 years, 11 months ago (2017-01-04 22:24:25 UTC) #31
loyso (OOO)
3 years, 11 months ago (2017-01-05 06:24:55 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2615843002/ by loyso@chromium.org.

The reason for reverting is: Causes test failures on Win10 Win7 bots:
https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Win1...

webkit_tests webkit_tests

unexpected_failures:
fast/forms/select/menulist-appearance-basic.html
fast/forms/select/menulist-style-color.html
fast/forms/select/select-selected.html
fast/forms/select/menulist-width-change.html
fast/forms/select/option-text-clip.html
fast/forms/select/option-script.html
fast/forms/select/option-strip-whitespace.html
fast/forms/color/input-appearance-color.html
fast/forms/select/select-dirty-parent-pref-widths.html
fast/forms/select/select-initial-position.html
fast/forms/select/menulist-deselect-update.html
fast/forms/select/select-change-listbox-to-popup.html
fast/forms/select/select-background-none.html
fast/forms/select/menulist-update-text-popup.html
fast/forms/select/select-baseline.html.

Powered by Google App Engine
This is Rietveld 408576698