[LayoutNG] Implement LayoutText::GetUpperLeftCorner
This patch implements LayoutText::GetUpperLeftCorner for LayoutNG. Spartial navigation, scroll to anchor, Inspector, and some others use this function. The existing code for legacy was incorrect for vertical flow as callers expect physical with flipped block, and the code uses LineTop (logical top) as physical Y. This patch includes the fix and a unit test. This is another step to port InlineBox code to LayoutNG, started when Aleks hit a bug by unported code. Bug: 636993 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_layout_ng;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I658a58fd8bd5582d51e973bf97e3a4e97107603e Reviewed-on: https://chromium-review.googlesource.com/981332Reviewed-by:Aleks Totic <atotic@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#546129}
Showing
Please register or sign in to comment