[webkit-changes] [WebKit/WebKit] e4afe7: [IFC][Line clamp] Enable percent value line-clamp ...
Alan Baradlay
noreply at github.com
Wed Dec 14 05:42:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e4afe709b9e3f8946c28fac2872532c0e98cf701
https://github.com/WebKit/WebKit/commit/e4afe709b9e3f8946c28fac2872532c0e98cf701
Author: Alan Baradlay <zalan at apple.com>
Date: 2022-12-14 (Wed, 14 Dec 2022)
Changed paths:
M LayoutTests/platform/ios/fast/overflow/line-clamp-expected.txt
M LayoutTests/platform/mac/fast/overflow/line-clamp-expected.txt
M Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp
M Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
Log Message:
-----------
[IFC][Line clamp] Enable percent value line-clamp for IFC
https://bugs.webkit.org/show_bug.cgi?id=249241
Reviewed by Antti Koivisto.
In order to resolve the (non-standard) percent value for line-clamp, we need to
layout the subtree first to be able to collect the number of lines.
* Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForStyle):
* Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp:
(WebCore::RenderDeprecatedFlexibleBox::applyModernLineClamp):
Canonical link: https://commits.webkit.org/257851@main
More information about the webkit-changes
mailing list