[LayoutNG] Avoid bookkeeping shape_exclusions if shapes aren't present.
We spend a lot of time collecting floats. This is for an edge-case calculation when shape-outside is specified on another float. Typically this doesn't happen. This change checks if a float is added with shape outside, and invalidates the derived_geometry_ member to indicate it needs to track these objects now. This removes one of the last large allocations in the exclusion space code, and improves micro-benchmarks by 5-10%. Bug: 635619 Change-Id: I32abb143959e28c526c16e779f9e2dc9c0992d56 Reviewed-on: https://chromium-review.googlesource.com/c/1309144Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#604647}
Showing
Please register or sign in to comment