[LFC][Integration] Enable float clear for <br>
https://bugs.webkit.org/show_bug.cgi?id=217450
Reviewed by Antti Koivisto.
Source/WebCore:
This patch enables IFC layout for <br clear> content.
* layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForLineLayoutWithReason):
* layout/integration/LayoutIntegrationInlineContent.h:
* layout/integration/LayoutIntegrationLine.h:
* layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::constructContent):
(WebCore::LayoutIntegration::LineLayout::contentLogicalHeight const):
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::clearFloats): Match the floored position of the float boxes in the search tree.
LayoutTests:
* platform/ios-wk1/fast/css/word-space-extra-expected.txt: Rebaselining.
* platform/ios/fast/css/word-space-extra-expected.txt:
* platform/mac/fast/css/word-space-extra-expected.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@268202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/rendering/RenderBlockFlow.cpp b/Source/WebCore/rendering/RenderBlockFlow.cpp
index eb10aea..4e615a5 100644
--- a/Source/WebCore/rendering/RenderBlockFlow.cpp
+++ b/Source/WebCore/rendering/RenderBlockFlow.cpp
@@ -2630,6 +2630,8 @@
case Clear::None:
break;
}
+ // FIXME: The float search tree has floored float box position (see FloatingObjects::intervalForFloatingObject).
+ newY = newY.floor();
if (height() < newY)
setLogicalHeight(newY);
}