[LayoutNG] Fix bug in resolving flex-basis:auto

When a column flexbox and an item had orthogonal writing modes (meaning
the child's inline direction matches the container's main axis), we were
using the item's max content size in the parent's writing mode to
resolve its flex-basis, but we should have been using it in the child's
writing mode.

Bug: 845235
Change-Id: I53bd5ba39f9c8cb4ac84dc4638c8abc57e38f974
Reviewed-on: https://chromium-review.googlesource.com/c/1409810
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622688}
2 files changed