Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c5356794f2a7d25e06461c2cdfcbee91ad32160c
https://github.com/WebKit/WebKit/commit/c5356794f2a7d25e06461c2cdfcbee91ad32160c
Author: Alan Baradlay <[email protected]>
Date: 2026-10-12 (Mon, 12 Oct 2026)
Changed paths:
M Source/WebCore/rendering/LineClampUpdater.cpp
M Source/WebCore/rendering/LineClampUpdater.h
M Source/WebCore/rendering/RenderBlockFlow.cpp
Log Message:
-----------
[line-clamp] Move setting the auto clamp point to LineClampUpdater
https://bugs.webkit.org/show_bug.cgi?id=327179
<rdar://problem/189766825>
Reviewed by Antti Koivisto.
In preparation for taking the auto clamp point back when block-end margins make
the line-clamp container too tall,
- move the block size limit into a static helper (autoClampBlockSizeLimit),
- move the isAutoLineClampRoot check into LineClampUpdater::autoClampPoint,
- move setting the clamp point (setMaximumLines or setClampAfterBox) to
LineClampUpdater::setAutoClampPoint,
- and fold the relayout into a lambda in RenderBlockFlow::layoutInFlowChildren.
No change in functionality.
* Source/WebCore/rendering/LineClampUpdater.cpp:
(WebCore::autoClampBlockSizeLimit):
(WebCore::LineClampUpdater::autoClampPoint const):
(WebCore::LineClampUpdater::setAutoClampPoint):
* Source/WebCore/rendering/LineClampUpdater.h:
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutInFlowChildren):
Canonical link: https://commits.webkit.org/323462@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications