[FlexNG] Fix HasAutoHeightOrContainingBlockWithAutoHeight.

In NG we set "OverrideContainingBlockContentLogicalHeight" on children
so they have the correct height to resolve percentages against.

HasAutoHeightOrContainingBlockWithAutoHeight didn't check this however
causing a bad percentage resolution size for replaced elements.

Bug: 845235
Change-Id: Idb4904adc3bd0ae6d8a58d40aa4a9887f05edca9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1982139
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729372}
2 files changed