• Morten Stenshorne's avatar
    [LayoutNG] Only stretch consumed block-size when overflowing. · c2245677
    Morten Stenshorne authored
    The main motivation behind this change is to get the code out of the way
    when interrupted by spanners. In such cases there may be space left in
    the fragmentainer when finishing the fragment before the spanner (i.e.
    the last piece of column content before the spanner), but this should
    neither be part of the fragment nor consumed block-size.
    
    We used to include the remaining space of the column interrupted by a
    spanner in consumed block-size, so that a node with fixed block-size
    would have this subtracted when generating fragments after the spanner
    (causing us to use less space on the node than we should).
    
    Bug: 829028
    Change-Id: I7990532474b45ef20900455da75b8337d08c62fc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532467Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
    Reviewed-by: default avatarAlison Maher <almaher@microsoft.com>
    Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#826889}
    c2245677
TestExpectations 536 KB