[LayoutNG] Shape fitting logic based off LineHeight.

This changes the fitting logic to be based off the LineHeight calculation,
instead of the "BlockSize" it was previously using. This makes us more
compatible with existing layout. This was making us infinite loop for a few
tests.

Additionally this fixes skipping shapes that we were previously considering in
the LineOffset computations.

Bug: 635619
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: I0aaf9bb1c6972648bee8bf73d4bdb21c5b09b9ee
Reviewed-on: https://chromium-review.googlesource.com/1081351
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563697}
15 files changed