DescriptionRefactor 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 #
Messages
Total messages: 18 (12 generated)
|