[layoutng] Correctly compute min/max content for orthogonal flows

When we are a legacy node and computing our min/max content, we need
to check if we are an orthogonal writing mode before just returning
legacy min/max, so that we return the right dimension (matching
container_writing_mode).

Bug: 635619
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: I9663bf8a384fe3bfddd457371d6ecf879fcbf03b
Reviewed-on: https://chromium-review.googlesource.com/1182142
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584757}
2 files changed