[NGFragmentItem] Fix hit test on position:relative inline element
This patch fixes hit test on position:relative inline element by changing |NGInlineCursor::PositionForPointInInlineBox()| and |LayoutInline::NodeAtPoint()| with descendants to pass assertions in following tests: - All/LayoutViewHitTestTest.HitTestHorizontal/* - All/LayoutViewHitTestTest.HitTestVerticalLR/* - All/ParameterizedLayoutInlineTest.MultilineRelativePositionedHitTest/1 This patch also changes |LayoutViewHitTestTest| class to check whether LayoutNG is enabled or disabled by |RuntimeEnabledFlag| instead of gTest's parameter for ease of working with |LayoutNGFragmentItem| runtime enabled feature. Note: Changes of |LayoutInline::NodeAtPoint()| is brought by http://crrev.com/c/2109575. Bug: 982194 Change-Id: I5d13542a2f57ca8ddd9dcf61a90f3ebbe4b2e0da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2104812 Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#751910}
Showing
Please register or sign in to comment