[LFC] Use the used margin values in outOfFlowReplacedVerticalGeometry consistently
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Jan 2019 16:13:07 +0000 (16:13 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Jan 2019 16:13:07 +0000 (16:13 +0000)
commit3ad3c474c3c9ce35bcffd587b7b471f0eacbf46a
tree08784d243f76c6ab30bb41fc970640475330de91
parent0ad6644c076cb8dbf9bce9f51cd1bc0f4f5e9ff9
[LFC] Use the used margin values in outOfFlowReplacedVerticalGeometry consistently
https://bugs.webkit.org/show_bug.cgi?id=194020

Reviewed by Antti Koivisto.

Source/WebCore:

Check the used margin variables whether we already computed before/after values.

Test: fast/block/block-only/absolute-position-with-margin-auto-simple.html

* layout/FormattingContextGeometry.cpp:
(WebCore::Layout::FormattingContext::Geometry::outOfFlowReplacedVerticalGeometry):

Tools:

* LayoutReloaded/misc/LFC-passing-tests.txt:

LayoutTests:

* fast/block/block-only/absolute-position-with-margin-auto-simple-expected.html: Added.
* fast/block/block-only/absolute-position-with-margin-auto-simple.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/block-only/absolute-position-with-margin-auto-simple-expected.html [new file with mode: 0644]
LayoutTests/fast/block/block-only/absolute-position-with-margin-auto-simple.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/layout/FormattingContextGeometry.cpp
Tools/ChangeLog
Tools/LayoutReloaded/misc/LFC-passing-tests.txt