diff --git a/LayoutTests/fast/inline/dynamic-line-clamp-change-on-nested-content-expected.html b/LayoutTests/fast/inline/dynamic-line-clamp-change-on-nested-content-expected.html new file mode 100644 index 000000000000..465701e3460a --- /dev/null +++ b/LayoutTests/fast/inline/dynamic-line-clamp-change-on-nested-content-expected.html @@ -0,0 +1 @@ +PASS \ No newline at end of file diff --git a/LayoutTests/fast/inline/dynamic-line-clamp-change-on-nested-content.html b/LayoutTests/fast/inline/dynamic-line-clamp-change-on-nested-content.html new file mode 100644 index 000000000000..fdd3fabbf513 --- /dev/null +++ b/LayoutTests/fast/inline/dynamic-line-clamp-change-on-nested-content.html @@ -0,0 +1,13 @@ + +
PASS
if this is not
visible
+ diff --git a/Source/WebCore/rendering/RenderBlockFlow.cpp b/Source/WebCore/rendering/RenderBlockFlow.cpp index 20fb9e81b70c..04b5c4edff85 100644 --- a/Source/WebCore/rendering/RenderBlockFlow.cpp +++ b/Source/WebCore/rendering/RenderBlockFlow.cpp @@ -452,6 +452,9 @@ void RenderBlockFlow::layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalH if (recomputeLogicalWidthAndColumnWidth()) relayoutChildren = true; + if (auto* layoutState = view().frameView().layoutContext().layoutState(); layoutState && layoutState->lineClamp()) + relayoutChildren = true; + rebuildFloatingObjectSetFromIntrudingFloats(); LayoutUnit previousHeight = logicalHeight();