[LayoutNG] Use containing block size correctly for abspos.
UpdateOutOfFlowBlockLayout() needs to deal with both the actual containing block size, as specified by CSS (i.e. the padding box size), and the border-box size of the object that is the containing block of an absolutely positioned descendant. Some light cleanup. We always need the border sizes, so just calculate them once, unconditionally. Also, there seems no need for a special path for grid/flex, so I removed it. Some tests start to pass. All but one are still expected to fail in legacy. Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I85462d76aa9fa3d0105bf079e59f7c2a7a70f117 Reviewed-on: https://chromium-review.googlesource.com/926004Reviewed-by:Aleks Totic <atotic@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#537918}
Showing
Please register or sign in to comment