Changeset 282256 in webkit
- Timestamp:
- Sep 9, 2021 8:04:42 PM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 16 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/table/table-insert-before-non-anonymous-block-expected.txt (modified) (1 diff)
-
LayoutTests/fast/table/vertical-position-with-0-height-box-expected.txt (added)
-
LayoutTests/fast/table/vertical-position-with-0-height-box.html (added)
-
LayoutTests/platform/ios/fast/css/acid2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/fast/css/acid2-pixel-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/fast/dynamic/insert-before-table-part-in-continuation-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/http/tests/misc/acid2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/http/tests/misc/acid2-pixel-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/tables/mozilla/bugs/bug3037-1-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/fast/css/acid2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/fast/css/acid2-pixel-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/http/tests/misc/acid2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/http/tests/misc/acid2-pixel-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug3037-1-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderTableCell.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r282255 r282256 1 2021-09-09 Alan Bujtas <zalan@apple.com> 2 3 [Table layout] Incorrect vertical position when the inline level box has 0px used height. 4 https://bugs.webkit.org/show_bug.cgi?id=230118 5 6 Reviewed by Antti Koivisto. 7 8 * fast/table/vertical-position-with-0-height-box-expected.txt: Added. 9 * fast/table/vertical-position-with-0-height-box.html: Added. 10 1 11 2021-09-09 Fujii Hironori <Hironori.Fujii@sony.com> 2 12 -
trunk/LayoutTests/fast/table/table-insert-before-non-anonymous-block-expected.txt
r263855 r282256 54 54 RenderBlock {DIV} at (0,0) size 50x50 [bgcolor=#0000FF] 55 55 RenderBlock {DIV} at (0,50) size 50x50 [bgcolor=#0000FF] 56 RenderTableCell {DIV} at (50, 0) size 50x0 [bgcolor=#0000FF] [r=0 c=1 rs=1 cs=1]56 RenderTableCell {DIV} at (50,50) size 50x0 [bgcolor=#0000FF] [r=0 c=1 rs=1 cs=1] -
trunk/LayoutTests/platform/ios/fast/css/acid2-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/ios/fast/css/acid2-pixel-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/ios/fast/dynamic/insert-before-table-part-in-continuation-expected.txt
r263855 r282256 41 41 RenderTableSection (anonymous) at (0,0) size 105x20 42 42 RenderTableRow (anonymous) at (0,0) size 105x20 43 RenderTableCell {TD} at (0, 0) size 0x0 [r=0 c=0 rs=1 cs=1]43 RenderTableCell {TD} at (0,15) size 0x0 [r=0 c=0 rs=1 cs=1] 44 44 RenderTableCell {DIV} at (0,0) size 105x20 [r=0 c=1 rs=1 cs=1] 45 45 RenderText {#text} at (0,0) size 105x19 -
trunk/LayoutTests/platform/ios/http/tests/misc/acid2-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/ios/http/tests/misc/acid2-pixel-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/ios/tables/mozilla/bugs/bug3037-1-expected.txt
r263855 r282256 25 25 text run at (0,0) width 33: "Back" 26 26 RenderText {#text} at (0,0) size 0x0 27 RenderTableCell {HTML:SPAN} at (32, 0) size 0x0 [r=0 c=1 rs=1 cs=1]27 RenderTableCell {HTML:SPAN} at (32,15) size 0x0 [r=0 c=1 rs=1 cs=1] 28 28 RenderInline {HTML:INPUT} at (0,0) size 0x0 29 29 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/fast/css/acid2-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/mac/fast/css/acid2-pixel-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.txt
r263855 r282256 41 41 RenderTableSection (anonymous) at (0,0) size 105x18 42 42 RenderTableRow (anonymous) at (0,0) size 105x18 43 RenderTableCell {TD} at (0, 0) size 0x0 [r=0 c=0 rs=1 cs=1]43 RenderTableCell {TD} at (0,14) size 0x0 [r=0 c=0 rs=1 cs=1] 44 44 RenderTableCell {DIV} at (0,0) size 105x18 [r=0 c=1 rs=1 cs=1] 45 45 RenderText {#text} at (0,0) size 105x18 -
trunk/LayoutTests/platform/mac/http/tests/misc/acid2-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/mac/http/tests/misc/acid2-pixel-expected.txt
r263855 r282256 36 36 RenderTableSection (anonymous) at (0,0) size 48x12 37 37 RenderTableRow (anonymous) at (0,0) size 48x12 38 RenderTableCell {LI} at (0, 0) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1]38 RenderTableCell {LI} at (0,12) size 12x0 [bgcolor=#000000] [r=0 c=0 rs=1 cs=1] 39 39 RenderTableCell (anonymous) at (12,0) size 12x12 [r=0 c=1 rs=1 cs=1] 40 40 RenderTable {LI} at (0,0) size 12x12 [bgcolor=#000000] 41 RenderTableCell {LI} at (24, 0) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1]41 RenderTableCell {LI} at (24,12) size 12x0 [bgcolor=#000000] [r=0 c=2 rs=1 cs=1] 42 42 RenderTableCell (anonymous) at (36,0) size 12x12 [r=0 c=3 rs=1 cs=1] 43 43 RenderListItem {LI} at (0,0) size 12x12 [bgcolor=#000000] -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug3037-1-expected.txt
r263855 r282256 25 25 text run at (0,0) width 33: "Back" 26 26 RenderText {#text} at (0,0) size 0x0 27 RenderTableCell {HTML:SPAN} at (32, 0) size 0x0 [r=0 c=1 rs=1 cs=1]27 RenderTableCell {HTML:SPAN} at (32,14) size 0x0 [r=0 c=1 rs=1 cs=1] 28 28 RenderInline {HTML:INPUT} at (0,0) size 0x0 29 29 RenderText {#text} at (0,0) size 0x0 -
trunk/Source/WebCore/ChangeLog
r282253 r282256 1 2021-09-09 Alan Bujtas <zalan@apple.com> 2 3 [Table layout] Incorrect vertical position when the inline level box has 0px used height. 4 https://bugs.webkit.org/show_bug.cgi?id=230118 5 6 Reviewed by Antti Koivisto. 7 8 Intrinsic padding is used in table cells to offset the content with their alignments as the content box may not be as tall as the cell itself. 9 This patch ensures that zero height content (where the baseline is also 0) gets the alignment offset as well. 10 (This patch also fixes the bug where we may reset the intrinsic padding to 0 on subsequent layouts.) 11 12 Test: fast/table/vertical-position-with-0-height-box.html 13 14 * rendering/RenderTableCell.cpp: 15 (WebCore::RenderTableCell::computeIntrinsicPadding): 16 1 17 2021-09-09 Diego Pino Garcia <dpino@igalia.com> 2 18 -
trunk/Source/WebCore/rendering/RenderTableCell.cpp
r278405 r282256 209 209 LayoutUnit logicalHeightWithoutIntrinsicPadding = logicalHeight() - oldIntrinsicPaddingBefore - oldIntrinsicPaddingAfter; 210 210 211 LayoutUnit intrinsicPaddingBefore;211 auto intrinsicPaddingBefore = oldIntrinsicPaddingBefore; 212 212 switch (style().verticalAlign()) { 213 213 case VerticalAlign::Sub: … … 217 217 case VerticalAlign::Length: 218 218 case VerticalAlign::Baseline: { 219 LayoutUnit baseline = cellBaselinePosition(); 220 if (baseline > borderAndPaddingBefore()) 219 auto baseline = cellBaselinePosition(); 220 auto needsIntrinsicPadding = baseline > borderAndPaddingBefore() || !logicalHeight(); 221 if (needsIntrinsicPadding) 221 222 intrinsicPaddingBefore = section()->rowBaseline(rowIndex()) - (baseline - oldIntrinsicPaddingBefore); 222 223 break;
Note: See TracChangeset
for help on using the changeset viewer.