[webkit-changes] [WebKit/WebKit] 1e1355: [css-line-clamp] 'continue: discard' should clip c...
Alan Baradlay
noreply at github.com
Fri Aug 30 11:21:53 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e135539d15c1367a030d6d514e091c1d3f3bb35
https://github.com/WebKit/WebKit/commit/1e135539d15c1367a030d6d514e091c1d3f3bb35
Author: Alan Baradlay <zalan at apple.com>
Date: 2024-08-30 (Fri, 30 Aug 2024)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
Log Message:
-----------
[css-line-clamp] 'continue: discard' should clip content in block direction
https://bugs.webkit.org/show_bug.cgi?id=278867
Reviewed by Antti Koivisto.
With non-legacy line clamp, now we can "force" discard in block direction without setting overflow: hidden.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layout):
(WebCore::Layout::InlineFormattingContext::lineLayout):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
(WebCore::Layout::InlineFormattingUtils::shouldDiscardRemainingContentInBlockDirection const):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h:
Canonical link: https://commits.webkit.org/282981@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list