DescriptionChange about caret painting in slimming paint mode
- To avoid DisplayItemList from being confused by caret display items
originally with PaintPhaseForeground phase, add PaintPhaseCaret for
carets;
- Issue display item for caret only when the object has caret.
This avoids too many dummy display items for carets for blocks that
don't have carets; (Originally we also output dummy display items for
carets in different order when an object's layer status changes but
there is no invalidation. This change also avoid this issue.)
- Remove ASSERT(displayList.size()) because we may result empty display
list if nothing needs painting.
BUG=444163, 441108
TEST=fast/text/caret-crash.html
TEST=fast/layers/layer-status-change-crash.html
TEST=ViewDisplayListTest.FullDocumentPaintingWithCaret
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187933
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add tests #Messages
Total messages: 17 (2 generated)
|