[LFC][Out-of-flow] Set used vertical margin values when top/height/bottom are non...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2019 15:23:24 +0000 (15:23 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2019 15:23:24 +0000 (15:23 +0000)
commit0853a003b377b758a0db2d261f691a7ea786544d
tree8834edcc6c9bedadef19c6ddb5c922c8f07e9628
parentd3a2cd7bbe321040e3fc345bf78c5628f920477f
[LFC][Out-of-flow] Set used vertical margin values when top/height/bottom are non-auto.
https://bugs.webkit.org/show_bug.cgi?id=193470

Reviewed by Antti Koivisto.

Source/WebCore:

Non-auto vertical margin values (which is mostly the case) should be set as used values.

Test: fast/block/block-only/non-auto-top-bottom-height-with-margins.html

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

Tools:

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

LayoutTests:

* fast/block/block-only/non-auto-top-bottom-height-with-margins-expected.txt: Added.
* fast/block/block-only/non-auto-top-bottom-height-with-margins.html: Added.

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