[LFC] Out-of-flow box is never a float box
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2019 18:04:48 +0000 (18:04 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2019 18:04:48 +0000 (18:04 +0000)
commit345ab439c00d64ec867a1419da6e2f32fce10496
tree5648f4fdd634eb5610f484d4433d28b2c2551668
parenta37d143e3123fec8d08dc40a4ffd9765b07798bc
[LFC] Out-of-flow box is never a float box
https://bugs.webkit.org/show_bug.cgi?id=194704

Reviewed by Antti Koivisto.

Source/WebCore:

We can't have it both ways. Absolute positioning wins.

Test: fast/block/block-only/out-of-flow-is-never-float-box.html

* layout/layouttree/LayoutBox.cpp:
(WebCore::Layout::Box::isFloatingPositioned const):
(WebCore::Layout::Box::isLeftFloatingPositioned const):
(WebCore::Layout::Box::isRightFloatingPositioned const):

Tools:

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

LayoutTests:

* fast/block/block-only/out-of-flow-is-never-float-box-expected.html: Added.
* fast/block/block-only/out-of-flow-is-never-float-box.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/block-only/out-of-flow-is-never-float-box-expected.html [new file with mode: 0644]
LayoutTests/fast/block/block-only/out-of-flow-is-never-float-box.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/layout/layouttree/LayoutBox.cpp
Tools/ChangeLog
Tools/LayoutReloaded/misc/LFC-passing-tests.txt