[NGFragmentItem] Fix hit test on left edge of RTL inline element
This patch changes |NGInlineCursor::PositionForPointInInlineBox()| to call |NGInlineCursor::PositionForPoint()| for |closest_child_after| like it does fro |closest_child_before| to make hit test on left edge of RTL inline element to pass the test[1]. This patch also changes |NGFragmentItem::PositionForPointInText()| to avoid calculating position for items of |IsGeneratedText()|, e.g. ::before/::after. This is follow-up of the CL[2] which introduces calling |PositionForPoint()| for |closest_child_before|. [1] editing/selection/caret-at-bidi-boundary.html [2] http://crrev.com/c/2104812 [NGFragmentItem] Fix hit test on position:relative inline element Bug: 707656 Change-Id: I8aca51af66a7d1885b7b7c2627cd7f4131b37c47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282721 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#786076}
Showing
Please register or sign in to comment