[LayoutNG] Set the correct TextAffinity for PositionForPoint0
This patch implements the behavior that, when clicking at the end of a line, we set an upstream caret selection to indicate that the the selection is at the end of the first line instead of the beginning of the second line, though they may have the same DOM position. This patch fixes accessibility/selection-affinity.html, whose failure is no longer relevant to Range.getClientRects(). Bug: 811502 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I0e2d9a9b93e9371a0fb604a0550a376b6035e09d Reviewed-on: https://chromium-review.googlesource.com/1111466 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#569550}
Showing
Please register or sign in to comment