• Aleks Totic's avatar
    [LayoutNG] Fix paint invalidation of LayoutText · b18ebe26
    Aleks Totic authored
    Root cause of missing invalidations:
    LayoutObject::AdjustStyleDifference was not marking LayoutText with NG rendering
    as NeedPaintInvalidation. This caused invalidation not to propagate to document.
    It was not marked because
    LayoutObject:1789 ToLayoutText(this)->HasTextBoxes() always returned false for NG.
    
    The fix was to make HasTextBoxes() NG-aware. This caused 2 callers
    of HasTextBoxes() to behave incorrectly. Created HasLegacyTextBoxes(),
    and added a TODO to remove them.
    
    Bug: 819372
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
    Change-Id: If2c4ddc0c9c707d11bb9115ef26ac578387c8359
    Reviewed-on: https://chromium-review.googlesource.com/961526
    Commit-Queue: Aleks Totic <atotic@chromium.org>
    Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#543885}
    b18ebe26
enable-blink-features=LayoutNG 309 KB