[LayoutNG] Fix LocalSelectionRect rect flipping for vertical-rl.
This patch fixes LocalSelectionRect rect for vertical-rl. It should be flipped physical. This is similar to previous koji's work: crrev.com/c/1457812 Test invalidation reason is also updated because if a LayoutText is selected, visual rect is expanded and it is (miss)recognized as geometry(full) invalidation: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/paint/object_paint_invalidator.cc?l=266 In legacy, this occurs when the selection includes the link break (which is not covered by the original visual rect of LayoutText but covered by the selection visual rect). For now this is a drawback of using LayoutText's visual rect for fragments. We'll improve this in the future when combining FragmentData and NGPaintFragment and use their real visual rects instead of LayoutText's (because LayoutText's visual rect will no longer need to include selection visual rect). Selection update within a line will still use partial selection invalidation for both NG and legacy. Bug: 930034 Change-Id: I4fa3e41797655bd6b436b798f25e8b7012ac05d8 Reviewed-on: https://chromium-review.googlesource.com/c/1484398 Commit-Queue: Yoichi Osato <yoichio@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#635892}
Showing
Please register or sign in to comment