[webkit-changes] [WebKit/WebKit] 00f23a: [LFC][IFC] Introduce InlineTextItem::isFullyTrimmable
alan
noreply at github.com
Mon Sep 26 07:55:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 00f23a6aaf0bd00e63a042396e69aeb69bf48137
https://github.com/WebKit/WebKit/commit/00f23a6aaf0bd00e63a042396e69aeb69bf48137
Author: Alan Bujtas <zalan at apple.com>
Date: 2022-09-26 (Mon, 26 Sep 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineTextItem.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineTextItem.h
Log Message:
-----------
[LFC][IFC] Introduce InlineTextItem::isFullyTrimmable
https://bugs.webkit.org/show_bug.cgi?id=245651
Reviewed by Antti Koivisto.
This is in preparation for marking non-breaking-space characters trimmable when "-webkit-nbsp-mode: space" is present.
* Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp:
(WebCore::Layout::Line::appendTextContent): Call isFullyTrimmable() to check if the trailing content could be trimmed.
* Source/WebCore/layout/formattingContexts/inline/InlineTextItem.cpp:
(WebCore::Layout::InlineTextItem::isFullyTrimmable const):
* Source/WebCore/layout/formattingContexts/inline/InlineTextItem.h:
Canonical link: https://commits.webkit.org/254859@main
More information about the webkit-changes
mailing list