Lay out table children in visual order, and set position and size.
Set caption and section positions before the first layout pass, and set the
logical height right after. This will help the fragmentation code break at the
right places.
By doing it in visual order right away we can also get rid of some code that
dealt with sections being moved after layout.
BUG=
534751
Committed:
https://crrev.com/7a651c67dd9441867ff84657bd13e97df69bbe3f
Cr-Commit-Position: refs/heads/master@{#425425}