Commit 7594f89
committed
text-indent not working on contenteditable elements in Safari 26.2
https://bugs.webkit.org/show_bug.cgi?id=307125
<rdar://problem/170280101>
Reviewed by Antti Koivisto.
1. text-indent relies on 'isFirstFormattedLineCandidate'
2. isFirstFormattedLineCandidate checks if there's a valid previousLine (std::optional<PreviousLine>
When partial layout starts from the first line (damage is either on the first or the second line), we should just have std::null_opt as PreviousLine.
Test: fast/text/partial-layout-with-text-indent.html
* LayoutTests/fast/text/partial-layout-with-text-indent-expected.html: Added.
* LayoutTests/fast/text/partial-layout-with-text-indent.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layout):
Canonical link: https://commits.webkit.org/307646@main1 parent a770c44 commit 7594f89
File tree
3 files changed
+26
-0
lines changed- LayoutTests/fast/text
- Source/WebCore/layout/formattingContexts/inline
3 files changed
+26
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
0 commit comments