DescriptionUpdate composition underline start/end constraints and add tests.
- Constrain paint start/end to be bounded by actual text size
and leave space for at least one character.
- Include start() in paintLength for RTL in paintCompositionUnderline().
It's included in paintEnd, and I believe its absence was a bug.
- Early-out when painting SVG inline text if text length is zero,
as we do in for non-SVG inline text.
- Add some DCHECKs to reflect my understanding of key preconditions.
- Add basic LTR/RTL composition underline layout tests.
- Add a 'split' test case wherein InlineTextBox has start = 1.
BUG=641261
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/7c023bffa5e0367f60d6aac94ac5b38af8802c2f
Cr-Commit-Position: refs/heads/master@{#418947}
Patch Set 1 #Patch Set 2 : Remove huge test case. #Patch Set 3 : Don't remove early-out on full truncation. #
Total comments: 2
Patch Set 4 : Sync to head. #Messages
Total messages: 23 (13 generated)
|