[FragmentItem] Fix inline offset in hit-testing
This patch fixes inline offset in hit-testing when |FragmentItem| is enabled. |NGPaintFragment| has two kinds of offsets; one to the parent, another to the containing block. |FragmentItem| reduces this only to the containing block, the same as the legacy |InlineBox|. The hit-testing in |NGBoxFragmentPainter| uses the offsets to the parent, and that part needs to change to support |FragmentItem|. Hit-testing functions in |NGBoxFragmentPainter| already carry 3 arguments that do not change. Instead of adding the 4th argument that does not change, this patch adds |HitTestContext| and pass it by reference. 7 failures, ~180 passes. Bug: 982194 Change-Id: I840b0b3c63b2b1b58f10c8bf493e473d988ae0ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954980 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#723029}
Showing
Please register or sign in to comment