[LFC] Use the used margin values in outOfFlowReplacedHorizontalGeometry consistently
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 13:39:44 +0000 (13:39 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 13:39:44 +0000 (13:39 +0000)
commite190fa1f8bf129fab4b7d7db73a3dbcb1f9193e0
tree60e5e5d397da643aca9eaa06e265d05a3644638e
parentb93475e477739db16d5e482dbdf7801590e21eca
[LFC] Use the used margin values in outOfFlowReplacedHorizontalGeometry consistently
https://bugs.webkit.org/show_bug.cgi?id=194074

Reviewed by Antti Koivisto.

Source/WebCore:

Check the used margin variables whether we already computed start/end values.

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

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

Tools:

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

LayoutTests:

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

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