DescriptionConstraint space for current child should be adjusted to offset.
As we now have space_for_current_child_ it should be used to search layout opportunities for floats. Also space_for_current_child_'s offset should be adjusted according to the available space.
List of changes:
- Change FindLayoutOpportunityForFragment to use space_for_current_child_.
- Rename CreateConstraintSpaceForChild -> CreateConstraintSpaceForCurrentChild and make it a private class's method.
- Adjust space_for_current_child_'s offset to the available space.
- Change NGBlockLayoutAlgorithmTest::PositionFloatFragments to include a regular block between floats.
BUG=635619
Committed: https://crrev.com/07703ad5e0afd141d4a6da847ffec5c372b7b566
Cr-Commit-Position: refs/heads/master@{#429622}
Patch Set 1 #Patch Set 2 : add 2 TODOs in CreateConstraintSpaceForCurrentChild, remove Mutable* API #
Total comments: 2
Messages
Total messages: 17 (9 generated)
|