ObjectPaintInvalidator::InvalidateSelection() calculates selection visual rect, and if needed, add old and new selection visual rects into partial invalidation rects. Currently NGPaintFragment lacks the functionality after we enable partial raster invalidation for SPv175. We should either let handle selection invalidation for each NGPaintFragment, or accumulate selection rects of NGPaintFragments of a container (through LayoutObject::LocalSelectionRect()).
Comment 1 by wangxianzhu@chromium.org
, Jun 3 2018