[line-clamp] ASSERT in RenderTreeNeedsLayoutChecker when all inline content is after the clamp point
https://bugs.webkit.org/show_bug.cgi?id=326198 <rdar://problem/189090307> Reviewed by Antti Koivisto. <div style="line-clamp: 1">Line 1<div><span style="display: inline-block"></span>Line 2</div></div> The inner div's inline content all comes after the clamp point, so inline layout discards it without building a single line and returns no layout result. Without a result, the integration does not know the content was discarded and leaves the inline-block needing layout. Check the line-clamp budget when there is no result. * LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-atomic-inline-after-clamp-point-crash.html: Added. * Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp: (WebCore::LayoutIntegration::LineLayout::layout): Canonical link: https://commits.webkit.org/322753@main
A
Alan Baradlay committed
b9541659a59b8c4b9086ea1c03f91bbcf50d40b1
Parent: ce61c78