You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[LFC][IFC] Add support for "word separator" when the whitespace content has multiple characters
https://bugs.webkit.org/show_bug.cgi?id=221355
Reviewed by Antti Koivisto.
Keep track of word separator characters in whitespace content even when the whitespace content has multiple characters.
This fixes cases when "word-spacing" has a non-zero value in "space and tab preserve" content (e.g <pre style="word-spacing: 200px">This content has spaces and tabs</pre>)
(On trunk we fail to adjust the run position with the word-spacing value because the whitespace content is not marked as a word separator.)
* layout/inlineformatting/InlineTextItem.cpp:
(WebCore::Layout::moveToNextNonWhitespacePosition):
(WebCore::Layout::InlineTextItem::createAndAppendTextItems):
* layout/inlineformatting/InlineTextItem.h:
(WebCore::Layout::InlineTextItem::createNonWhitespaceItem):
Canonical link: https://commits.webkit.org/233740@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@272416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Copy file name to clipboardExpand all lines: Source/WebCore/ChangeLog
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
2021-02-05 Zalan Bujtas <zalan@apple.com>
2
+
3
+
[LFC][IFC] Add support for "word separator" when the whitespace content has multiple characters
4
+
https://bugs.webkit.org/show_bug.cgi?id=221355
5
+
6
+
Reviewed by Antti Koivisto.
7
+
8
+
Keep track of word separator characters in whitespace content even when the whitespace content has multiple characters.
9
+
This fixes cases when "word-spacing" has a non-zero value in "space and tab preserve" content (e.g <pre style="word-spacing: 200px">This content has spaces and tabs</pre>)
10
+
(On trunk we fail to adjust the run position with the word-spacing value because the whitespace content is not marked as a word separator.)
// FIXME: Use the following list of non-whitespace characters to set the "isWordSeparator" bit: noBreakSpace, ethiopicWordspace, aegeanWordSeparatorLine aegeanWordSeparatorDot ugariticWordDivider.
0 commit comments