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

Issue 2920373003: [ActiveSuggestionMarker #4] Refactor InlineTextBoxPainter to avoid using CompositionUnderline (Closed)

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

Description

Refactor InlineTextBoxPainter to avoid using CompositionUnderline CompositionUnderline is a class that exists mainly so callers can specify the information necessary for creating CompositionMarkers (start/end offset, underline color, thickness, background color). It's currently also serving double-duty in InlineTextBoxPainter to pass this information around after it's retrieved from a CompositionMarker. With the introduction of painting support for ActiveSuggestionMarker in https://codereview.chromium.org/2925543003, this starts to seem kind of strange, if it didn't already (since we're creating CompositionUnderlines from non-Composition markers). This CL refactors InlineTextBoxPainter to pass around references to DocumentMarkers/ StyleableMarkers directly instead of creating CompositionUnderlines. BUG=707867 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2920373003 Cr-Commit-Position: refs/heads/master@{#480273} Committed: https://chromium.googlesource.com/chromium/src/+/206f5f0fcdd4809a342fdde6dbcfa24d2dbc306f

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -39 lines) Patch
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h View 1 4 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 9 chunks +22 lines, -26 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
rlanday
Note: this CL is stacked on top of (and depends on) https://codereview.chromium.org/2925543003
3 years, 6 months ago (2017-06-06 19:30:28 UTC) #7
chrishtr
lgtm
3 years, 6 months ago (2017-06-16 23:07:18 UTC) #9
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/2920373003/1
3 years, 6 months ago (2017-06-16 23:07:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/239816) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-16 23:10:55 UTC) #12
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/2920373003/20001
3 years, 6 months ago (2017-06-17 00:02:13 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-17 02:32:16 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/206f5f0fcdd4809a342fdde6dbcf...

Powered by Google App Engine
This is Rietveld 408576698