[layoutng] Refactor NGBox::Layout

Move some of the code into two new functions to make everything more readable.

R=eae@chromium.org,glebl@chromium.org
BUG=635619

Review-Url: https://codereview.chromium.org/2400023002
Cr-Commit-Position: refs/heads/master@{#423722}
2 files changed