[FragmentItem] Support |LayoutObject::PositionForPoint|
This patch implements |NGFragmentItem| support for |LayoutObject::PositionForPoint|. When only |Node| is needed (e.g., hovering), |NodeAtPoint| is used, but when text offset is needed (e.g., click), |PositionForPoint| does the work. Clicking on text works now, but draggig doesn't work yet. I'll work in following patches. This includes a semantics change to |NGInlineCursor:: PositionForPoint|. Before this change, it returned the position for the current item/fragment. The problem is that the root |LayoutBlockFlow| cannot be the current item. This patch changes it to return any items where the cursor can traverse. Fixes ~30 failures. Bug: 982194 Change-Id: Ie4f26fcda0ecfd0084afe9ff5272d9f4e682452b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948575 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#721922}
Showing
Please register or sign in to comment