[LayoutNG] Fix LayoutBox::ComputePercentageLogicalHeight when OverrideContaining

This fixes many table tests where table<height:100%> inside body was
too tall by margin_border_padding,

The cause was that LayoutBox::ComputePercentageLogicalHeight
was incorrectly applying root_margin_border_padding_height correction
even when OverrideContainingBlockContentLogicalHeight was set.

Bug: 635619
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: Idf9ccabbb80eecbb10105c8a143deff84d5ef014
Reviewed-on: https://chromium-review.googlesource.com/1084326
Commit-Queue: Aleks Totic <atotic@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564231}
3 files changed