• Xiaocheng Hu's avatar
    [LayoutNG] Fix hit test visibility check on text fragments · e6c81f16
    Xiaocheng Hu authored
    When hit testing a text fragment, current code checks the hit test
    request against its containing box fragment to decide if the text is
    visible to hit test request. This gives wrong result when there are
    culled inlines between the two fragments, for example:
    
    <div><span inert>foo</span></div>
    
    This patch fixes the issue by using the text fragment itself for the
    visibility check.
    
    Bug: 851075
    Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I2b318260c6a108c091d66b30e46d3d64d5f8a408
    Reviewed-on: https://chromium-review.googlesource.com/1110524Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
    Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#569555}
    e6c81f16
enable-blink-features=LayoutNG 76.7 KB