Commit 8a9a5a9
committed
[blocks-in-inline] getClientRects is missing an entry when called on an inline box
https://bugs.webkit.org/show_bug.cgi?id=304665
Reviewed by Antti Koivisto.
A single block inside inline (<span><div></div></span>) generates 3 "lines" and getClientRects is supposed to return all of them.
However due to ignoring 0px width (non-leading) inline boxes in collectInlineBoxRects, we only return 2 (the first, leading (0px tall)
line and the one generated by the block).
Having all lines included makes block-in-inline-client-rects-001.html fail but we already render such content incorrectly on trunk.
<div>
<span style="outline: 1px solid green">
<div style="width: 500px"></div>
</span>
</div>
There should _not_ be a green line here.
* LayoutTests/TestExpectations:
* LayoutTests/fast/block/inside-inlines/getClientRects-on-inline-box-missing-entry-expected.txt: Added.
* LayoutTests/fast/block/inside-inlines/getClientRects-on-inline-box-missing-entry.html: Added.
* LayoutTests/fast/inline/blocks-in-inline-client-rects-expected.txt: Removed. : this is a copy of block-in-inline-client-rects-001.html
* LayoutTests/fast/inline/blocks-in-inline-client-rects.html: Removed.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::collectInlineBoxRects const):
Canonical link: https://commits.webkit.org/304949@main1 parent 5eec534 commit 8a9a5a9
File tree
6 files changed
+32
-79
lines changed- LayoutTests
- fast
- block/inside-inlines
- inline
- Source/WebCore/layout/integration/inline
6 files changed
+32
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8184 | 8184 | | |
8185 | 8185 | | |
8186 | 8186 | | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
| 8190 | + | |
8187 | 8191 | | |
8188 | 8192 | | |
8189 | 8193 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 23 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 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 70 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
| 1154 | + | |
1157 | 1155 | | |
1158 | 1156 | | |
1159 | 1157 | | |
| |||
0 commit comments