Description[css-grid] Isolate intrinsic size computation from layout
This is the last patch of the items placement data refactoring. By using
a different Grid instance in computeIntrinsicLogicalWidths we effectively
isolate the intrinsic size computation from the layout. They are now using
different data structures so they don't interfere each other.
This also means that we no longer reuse the placement of items done in the
intrinsic size computation. That shouldn't be a big issue because we do save
the position of items between layouts.
Last but not least, this patch finally removes the ugly const_cast's we had
in computeIntrinsicLogicalWidths() as we no longer modify the internal state
of LayoutGrid.
BUG=627812, 666688
Committed: https://crrev.com/b34fbbccb46eae5f12faec3ea00ed3c3bfb2692b
Cr-Commit-Position: refs/heads/master@{#440755}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Patch for landing #
Messages
Total messages: 20 (10 generated)
|