Revert "[layoutng] Use the correct layout algorithm to compute min/max sizes"

This reverts commit 02a52f516f88d6a2046d38c73957af363f35691c.

Reason for revert: suspect of causing test failures on multiple
bots for test flexbox-with-overflow-auto-child-crash.html.

Bug: 864402

Original change's description:
> [layoutng] Use the correct layout algorithm to compute min/max sizes
> 
> This also required adding a check in NGBlockNode::ComputeMinMaxSize
> for whether we are inside of PerformLayout -- on Mac, we can
> compute preferred sizes outside of layout; however, we can't do
> actual layout in that case, so we have to fallback to legacy
> min/max size in this case (c.f. RenderViewImpl::CheckPreferredSize())
> 
> Bug: 635619
> Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
> Change-Id: I0caf0c6c79264074ccaf9f45b83a420950dab715
> Reviewed-on: https://chromium-review.googlesource.com/1131562
> Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
> Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#575545}

TBR=cbiesinger@chromium.org,ikilpatrick@chromium.org,mstensho@chromium.org

Change-Id: I02d8cbfe883bafb2a3780ec46bd11b9e786678f4
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 635619
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Reviewed-on: https://chromium-review.googlesource.com/1140033
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Commit-Queue: Mikel Astiz <mastiz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575576}
5 files changed