[LayoutNG] Fix shape-outside-{circle-048,polygon-020}.html tests.

This was two subtle bugs in one.

1) We need to copy back data to the ShapeOutsideInfo side
   data-structure, even if its an "intermediate" layout, (during the
   min/max pass).

   This was causing the incorrect size to be calculated for body, as
   it thought the shape was "empty" (its size was 0,0).

   Eventually this should be fixed by moving the shape to the layout
   result, removing this side data-structure.

2) The static-position for vertical-rl was broken.
   When accounting for flipped-blocks, we need to use the containing
   block writing-mode, instead of the direct parent.

   Static position doesn't really work cross writing modes in the
   existing layout system, so this isn't perfect, is closer to the old
   system.

Bug: 635619
Change-Id: Ia7f8144cc1c9515b161bf3502c58fee66e59f3c3
Reviewed-on: https://chromium-review.googlesource.com/c/1315390
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Aleks Totic <atotic@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605345}
4 files changed