[LayoutNG] Fix physical offset calculation in LayoutNGMixin::NodeAtPoint()
In LayoutNGMixin::NodeAtPoint(), parameter |accumulated_offset| satisfies that, |accumulated_offset + Location()| equals the physical offset of the current LayoutBox in the paint layer, regardless of writing mode or whether the box was placed by NG or legacy. This patches fixes the physical offset calculation utilizing the above invariant. It also renames variable |adjusted_location| into |physical_offset| to be more accurate. Bug: 855279 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I73311ad17c56cf1f300e627966904fac3430a5d9 Reviewed-on: https://chromium-review.googlesource.com/1117881 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Reviewed-by:
Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#571608}
Showing
Please register or sign in to comment