Use culled recct for <br> if it is not selected
|NGBoxFragmentPainter| skips painitng if the ink overflow is outside of culled rect, but doesn't apply the optimization to <br> because its ink overflow is empty but selection needs to be painted. This patch restricts it only when the <br> is selected. Note, currently there are 3 code paths that paint <br>: 1. Legacy 2. LayoutNG (NGPaintFragment) 3. LayoutNG (NGFragmentItem, not enabled yet, crbug.com/982194) This patch changes 2 and 3. Bug: 982194 Change-Id: I87a0b21b5dae3e9d04daa71a3366f4b37cdb7268 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2147439Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#758874}
Showing
Please register or sign in to comment