[LayoutNG] Union different types of rare-data on the constraint space.
This unions different types of rare-data which are mutually exclusive. They fall into (3) categories at the moment: - block-data (inflow block which which doesn't establish a new formatting context). - table-cell-data (display: table-cell). - custom-data (display: layout(foo)). This keeps the actual structs within the union private such that nobody messes around with uninitialized "things". This saves ~28bytes of RareData size. (+/- 4 bytes for bad math). Change-Id: I1af5445222d82d8a0ac5dac5573602b807751857 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758654 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Reviewed-by:
Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#693835}
Showing
This diff is collapsed.
Please register or sign in to comment