[webkit-changes] [WebKit/WebKit] 49a592: [IFC] RenderStyle::whiteSpaceCollapse should be us...
Alan Baradlay
noreply at github.com
Wed Jun 21 07:06:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 49a5921035bd99e38850db523badca1ef9208b78
https://github.com/WebKit/WebKit/commit/49a5921035bd99e38850db523badca1ef9208b78
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-06-21 (Wed, 21 Jun 2023)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
Log Message:
-----------
[IFC] RenderStyle::whiteSpaceCollapse should be used to figure out whether whitespace content should be collapsed on not
https://bugs.webkit.org/show_bug.cgi?id=258329
Reviewed by Tim Nguyen.
Preserving rules as follows:
spaces and tabs: pre, pre-wrap and break-spaces (preserve and break-spaces)
new lines: pre, pre-wrap, break-spaces and pre-line (preserve, preserve-break and break-spaces)
* Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp:
(WebCore::Layout::TextUtil::shouldPreserveSpacesAndTabs):
(WebCore::Layout::TextUtil::shouldPreserveNewline):
Canonical link: https://commits.webkit.org/265353@main
More information about the webkit-changes
mailing list