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

Issue 2932913002: Move spellcheck underline colors into LayoutTheme (Closed)

Created:
3 years, 6 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, mac-reviews_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move spellcheck underline colors into LayoutTheme I'm adding support in Chrome for the Android spellcheck menu in https://codereview.chromium.org/2931443003. When a user taps on a misspelled word, I need to highlight the word in a color based on the color of the spellcheck underline (we add some transparency). We're trying to avoid hard-coding the spellcheck color in editing code. Therefore, we think it makes sense to move the colors for spelling/grammar markers out of InlineTextBoxPainter into LayoutTheme, so other code can make use of them. BUG=715365 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2932913002 Cr-Commit-Position: refs/heads/master@{#478755} Committed: https://chromium.googlesource.com/chromium/src/+/61856d2266ce3b76ac8485a9ad2091d18842472a

Patch Set 1 #

Patch Set 2 : Fix Mac build #

Total comments: 3

Patch Set 3 : Remove redundant wrapper methods #

Patch Set 4 : Fix Mac buildc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -6 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutTheme.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTheme.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeMac.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeMac.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
rlanday
3 years, 6 months ago (2017-06-09 23:54:21 UTC) #9
chrishtr
https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h File third_party/WebKit/Source/core/layout/LayoutTheme.h (right): https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h#newcode133 third_party/WebKit/Source/core/layout/LayoutTheme.h:133: // Underline colors for spelling and grammar markers. I ...
3 years, 6 months ago (2017-06-10 00:45:56 UTC) #10
rlanday
https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h File third_party/WebKit/Source/core/layout/LayoutTheme.h (right): https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h#newcode135 third_party/WebKit/Source/core/layout/LayoutTheme.h:135: Color GrammarMarkerUnderlineColor() const; On 2017/06/10 at 00:45:56, chrishtr wrote: ...
3 years, 6 months ago (2017-06-10 16:34:03 UTC) #13
rlanday
https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h File third_party/WebKit/Source/core/layout/LayoutTheme.h (right): https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h#newcode135 third_party/WebKit/Source/core/layout/LayoutTheme.h:135: Color GrammarMarkerUnderlineColor() const; On 2017/06/10 at 00:45:56, chrishtr wrote: ...
3 years, 6 months ago (2017-06-10 16:34:03 UTC) #14
rlanday
(If I upgrade to the new code review tool, will it stop double-publishing my comments?)
3 years, 6 months ago (2017-06-10 16:36:06 UTC) #15
chrishtr
On 2017/06/10 at 16:34:03, rlanday wrote: > https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h > File third_party/WebKit/Source/core/layout/LayoutTheme.h (right): > > https://codereview.chromium.org/2932913002/diff/20001/third_party/WebKit/Source/core/layout/LayoutTheme.h#newcode135 ...
3 years, 6 months ago (2017-06-12 15:07:10 UTC) #16
rlanday
On 2017/06/12 at 15:07:10, chrishtr wrote: > On 2017/06/10 at 16:34:03, rlanday wrote: > > ...
3 years, 6 months ago (2017-06-12 17:59:08 UTC) #19
chrishtr
lgtm
3 years, 6 months ago (2017-06-12 18:01:04 UTC) #20
rlanday
I bet I know why the other methods use those wrappers: some people think you ...
3 years, 6 months ago (2017-06-12 18:03:47 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/2932913002/40001
3 years, 6 months ago (2017-06-12 18:04:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/439606)
3 years, 6 months ago (2017-06-12 18:32:52 UTC) #26
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/2932913002/60001
3 years, 6 months ago (2017-06-12 18:45:55 UTC) #29
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 20:53:48 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/61856d2266ce3b76ac8485a9ad20...

Powered by Google App Engine
This is Rietveld 408576698