[LayoutNG] Optimize resolving lengths.
This patch splits up resolving different types of lengths (min, max, and content) into their own functions. This has two effects: 1) The functions are now (arguably) easier to follow. All of the preamble logic within ResolveInlineLength/ResolveBlockLength are moved to their respective functions. 2) Slightly faster in the common cases due to less branches. Bug: 635619 Change-Id: I35d305b458f4dfbb25cb6f55c21db2d3361e046e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1533385 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Aleks Totic <atotic@chromium.org> Reviewed-by:
Christian Biesinger <cbiesinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#645313}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment