Avoid multiple recursions through the tree when calculating percent height

Test=PerformanceTests/Layout/nested-blocks-with-percent-height-and-max-height.html

BUG=512545

Review URL: https://codereview.chromium.org/1405953005

Cr-Commit-Position: refs/heads/master@{#358640}
1 file changed