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

Issue 2896273003: Show selection highlight even if we have a composition underline (Closed)

Created:
3 years, 7 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
chrishtr, Stephen White
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show selection highlight even if we have a composition underline We currently have some logic (dating back to 2005) to not show the selection highlight if we're also showing a composition underline. We're not 100% sure why this (probably to avoid some sort of interaction between the selection color and the underline), but we think it's unnecessary. There are already certain interactions we don't do anything about, for example the composition underline matching the background color of the text. This CL removes this logic so we can show the selection highlight while the Android Voice IME (which keeps an underlined composition range open) is active. BUG=628670 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2896273003 Cr-Commit-Position: refs/heads/master@{#476178} Committed: https://chromium.googlesource.com/chromium/src/+/1053faaf3d0458556000acde907116a5d869c815

Patch Set 1 #

Patch Set 2 : Show regardless of whether or not the composition underline has a background color #

Patch Set 3 : Add test (need to rebaseline) #

Patch Set 4 : Add test case baselines #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -12 lines) Patch
A third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html View 1 2 1 chunk +19 lines, -0 lines 1 comment Download
A third_party/WebKit/LayoutTests/platform/linux/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.10/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.9/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.9/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.9/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.9/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/selection/text-selection-with-composition-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 2 chunks +1 line, -12 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
rlanday
3 years, 7 months ago (2017-05-23 22:37:45 UTC) #7
rlanday
Per discussion on the bug, I'm changing this to show the selection highlight regardless of ...
3 years, 7 months ago (2017-05-23 22:59:55 UTC) #9
Stephen White
Probably better that someone on the Paint team review this.
3 years, 7 months ago (2017-05-24 20:36:42 UTC) #13
chrishtr
Change looks ok. Could you please add a test?
3 years, 6 months ago (2017-05-30 18:21:12 UTC) #14
rlanday
On 2017/05/30 at 18:21:12, chrishtr wrote: > Change looks ok. Could you please add a ...
3 years, 6 months ago (2017-05-30 20:46:00 UTC) #15
chrishtr
On 2017/05/30 at 20:46:00, rlanday wrote: > On 2017/05/30 at 18:21:12, chrishtr wrote: > > ...
3 years, 6 months ago (2017-05-30 21:54:30 UTC) #16
rlanday
Does this test look OK?
3 years, 6 months ago (2017-05-31 23:33:56 UTC) #17
chrishtr
Test looks fine. I assume it fails without your patch? https://codereview.chromium.org/2896273003/diff/60001/third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html File third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html (right): https://codereview.chromium.org/2896273003/diff/60001/third_party/WebKit/LayoutTests/paint/selection/text-selection-with-composition.html#newcode1 ...
3 years, 6 months ago (2017-06-01 00:47:07 UTC) #18
rlanday
Yes, the test fails without my patch. But when I use testharness.js, it seems to ...
3 years, 6 months ago (2017-06-01 01:12:54 UTC) #19
chrishtr
On 2017/06/01 at 01:12:54, rlanday wrote: > Yes, the test fails without my patch. But ...
3 years, 6 months ago (2017-06-01 01:14:09 UTC) #20
chrishtr
lgtm
3 years, 6 months ago (2017-06-01 01:14:17 UTC) #21
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/2896273003/60001
3 years, 6 months ago (2017-06-01 01:15:50 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 03:51:05 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1053faaf3d0458556000acde9071...

Powered by Google App Engine
This is Rietveld 408576698