[layoutng] Better abspos support in legacy interop

In legacy layout, abspos differs from regular blocks in that abspos blocks
position themselves in their own layout, instead of getting positioned by
their parent. So it we are a positioned block in a legacy-layout containing
block, we have to emulate this positioning, which is what this change does.

Fixes this testcase:
<div style="height: 200px; background: yellow; position: relative;">
  XXX
  <div style="position: absolute; bottom: 0;">
    <div>Bottom</div>
  </div>
</div>

R=atotic@chromium.org,ikilpatrick@chromium.org
BUG=635619

Review-Url: https://codereview.chromium.org/2591273002
Cr-Commit-Position: refs/heads/master@{#440975}
1 file changed