Chromium Code Reviews
DescriptionFix caret paint invalidation issue on partial lifecycle updates
Previously caret paint invalidation status was updated after FrameView's
layout. During a partial lifecyle update, the previous status, which was
supposed to be handled by the next paint invalidation tree walk, was
overriden, causing some invalidations were not handled.
Rename CaretDisplayItemClient::updateStyleAndLayoutIfNeeded() to
updateForPaintInvalidation() and call it from
FrameView::updateCaretsForPaintInvalidation().
It's still reasonable to let FrameView handle part of caret paint
invalidation because carets belongs to FrameViews. The real paint
invalidation is handled through LayoutBlock because carets are painted
by the containing LayoutBlock and we need the paint invalidation tree
walk context for paint invalidation.
BUG=699044
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Patch Set 1 #
Total comments: 2
Messages
Total messages: 9 (6 generated)
|