• Koji Ishii's avatar
    [LayoutNG] Implement LayoutText::GetUpperLeftCorner · 1e0cb518
    Koji Ishii authored
    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: default avatarAleks Totic <atotic@chromium.org>
    Reviewed-by: default avatarEmil A Eklund <eae@chromium.org>
    Commit-Queue: Koji Ishii <kojii@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#546129}
    1e0cb518
enable-blink-features=LayoutNG 207 KB