DescriptionAdding backgroundColor to WebCompositionUnderline and using it for InlineTextBox drawing.
This CL enables custom background color to be specified for IME composition.
Its Chrome counterpart is: https://codereview.chromium.org/313053007 . Details:
- Adding backgroundColor to the following:
WebCore::CompositionUnderline
blink::WebCompositionUnderline
for backward compabitility, we keep an old constructor, which will be deleted
in another refactoring CL. Updated some tests to use the new constructor.
- Refactored (now) repetative code to loop over WebCompositionUnderline that
intersect with a range by adding class CompositionUnderlineVisitor.
- Perhaps WebCompositionUnderline should be renamed to WebCompositionSpan,
but this refactoring task can be done in a separate CL.
We will need to split this CL when we commit.
BUG=135900
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176387
Patch Set 1 : #
Total comments: 8
Patch Set 2 : Cleanup; renaming CompositionUnderlineVisitor to ...Iterator. #
Total comments: 4
Patch Set 3 : Renaming to CompositionUnderlineRangeFilter and using .begin(), .end(); adding unit test. #
Total comments: 16
Patch Set 4 : Fixing type, consts, comments; adding std:: for min() and max(). #
Total comments: 4
Patch Set 5 : Need to specify 'friend class', not just 'friend'. #Patch Set 6 : Sync. #Patch Set 7 : Sync (to fix try job update). #
Total comments: 14
Patch Set 8 : Removing over-eager cleanups; adding CompositionUnderlineRangeFilter::operator->(). #
Total comments: 18
Patch Set 9 : Style fixes; early exit for drawing transparent underlines. #
Total comments: 4
Patch Set 10 : Extracting paintCompositionBackgrounds() from paint(). #Messages
Total messages: 35 (0 generated)
|