Changeset 278931 in webkit
- Timestamp:
- Jun 16, 2021, 6:44:23 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 20 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/inline/hidpi-legacy-integral-rounding-on-hard-line-break-expected.html (added)
-
LayoutTests/fast/inline/hidpi-legacy-integral-rounding-on-hard-line-break.html (added)
-
LayoutTests/fast/inline/hidpi-legacy-integral-rounding-on-inline-boxes-expected.html (added)
-
LayoutTests/fast/inline/hidpi-legacy-integral-rounding-on-inline-boxes.html (added)
-
LayoutTests/platform/ios/tables/mozilla/bugs/bug106795-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/ios/tables/mozilla/bugs/bug126742-expected.txt (modified) (9 diffs)
-
LayoutTests/platform/ios/tables/mozilla/bugs/bug16252-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/tables/mozilla/bugs/bug22513-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/tables/mozilla/bugs/bug82946-2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios/tables/mozilla_expected_failures/bugs/bug89315-expected.txt (modified) (5 diffs)
-
LayoutTests/platform/mac/fast/text/basic/generic-family-reset-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug106795-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug1188-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug126742-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug1318-expected.txt (modified) (3 diffs)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug16252-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug22513-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug57828-2-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug60804-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug60807-expected.txt (modified) (1 diff)
-
LayoutTests/platform/mac/tables/mozilla/bugs/bug82946-2-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/layout/integration/LayoutIntegrationInlineContentBuilder.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278930 r278931 1 2021-06-16 Alan Bujtas <zalan@apple.com> 2 3 Content moves up when hovering over a link on Hacker News 4 https://bugs.webkit.org/show_bug.cgi?id=226852 5 <rdar://78537231> 6 7 Reviewed by Antti Koivisto. 8 9 * fast/inline/hidpi-legacy-integral-rounding-on-inline-boxes-expected.html: Added. 10 * fast/inline/hidpi-legacy-integral-rounding-on-inline-boxes.html: Added. 11 1 12 2021-06-16 Frederic Wang <fwang@igalia.com> 2 13 -
trunk/LayoutTests/platform/ios/tables/mozilla/bugs/bug106795-expected.txt
r272100 r278931 8 8 RenderTableRow {TR} at (0,0) size 781x38 9 9 RenderTableCell {TD} at (0,7) size 781x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 10 RenderBR {BR} at (1, 1) size 0x2010 RenderBR {BR} at (1,0) size 0x21 11 11 RenderTableRow {TR} at (0,37) size 781x6 12 12 RenderTableCell {TD} at (0,37) size 781x6 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1] … … 14 14 RenderTableRow {TR} at (0,42) size 781x38 15 15 RenderTableCell {TD} at (0,50) size 781x23 [bgcolor=#CC0000] [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1] 16 RenderBR {BR} at (1, 1) size 0x2016 RenderBR {BR} at (1,0) size 0x21 -
trunk/LayoutTests/platform/ios/tables/mozilla/bugs/bug126742-expected.txt
r275515 r278931 24 24 RenderInline {A} at (0,0) size 104x20 [color=#0000EE] 25 25 RenderInline {FONT} at (0,0) size 104x16 26 RenderText {#text} at (340,-1) size 104x1 626 RenderText {#text} at (340,-1) size 104x17 27 27 text run at (340,0) width 104: "Course Information" 28 28 RenderTableRow {TR} at (0,118) size 784x34 … … 30 30 RenderInline {A} at (0,0) size 40x20 [color=#0000EE] 31 31 RenderInline {FONT} at (0,0) size 40x16 32 RenderText {#text} at (372,-1) size 40x1 632 RenderText {#text} at (372,-1) size 40x17 33 33 text run at (372,0) width 40: "Lecture" 34 34 RenderTableRow {TR} at (0,151) size 784x34 … … 38 38 RenderInline {A} at (0,0) size 60x20 [color=#0000EE] 39 39 RenderInline {FONT} at (0,0) size 60x16 40 RenderText {#text} at (362,-1) size 60x1 640 RenderText {#text} at (362,-1) size 60x17 41 41 text run at (362,0) width 60: "Homework" 42 42 RenderTableRow {TR} at (0,184) size 784x33 … … 44 44 RenderInline {A} at (0,0) size 42x20 [color=#0000EE] 45 45 RenderInline {FONT} at (0,0) size 42x16 46 RenderText {#text} at (371,-1) size 42x1 646 RenderText {#text} at (371,-1) size 42x17 47 47 text run at (371,0) width 42: "Quizzes" 48 48 RenderTableRow {TR} at (0,216) size 784x34 … … 50 50 RenderInline {FONT} at (0,0) size 36x16 [color=#0000FF] 51 51 RenderInline {A} at (0,0) size 36x16 [color=#0000EE] 52 RenderText {#text} at (374,-1) size 36x1 652 RenderText {#text} at (374,-1) size 36x17 53 53 text run at (374,0) width 36: "Exams" 54 54 RenderTableRow {TR} at (0,249) size 784x34 … … 58 58 RenderInline {A} at (0,0) size 58x20 [color=#0000EE] 59 59 RenderInline {FONT} at (0,0) size 58x16 60 RenderText {#text} at (363,-1) size 21x1 660 RenderText {#text} at (363,-1) size 21x17 61 61 text run at (363,0) width 21: "Lab" 62 62 RenderInline {U} at (0,0) size 38x16 63 RenderText {#text} at (383,-1) size 38x1 663 RenderText {#text} at (383,-1) size 38x17 64 64 text run at (383,0) width 38: "oratory" 65 65 RenderTableRow {TR} at (0,282) size 784x33 … … 68 68 RenderInline {U} at (0,0) size 38x20 69 69 RenderInline {FONT} at (0,0) size 38x16 70 RenderText {#text} at (373,-1) size 38x1 670 RenderText {#text} at (373,-1) size 38x17 71 71 text run at (373,0) width 38: "Grades" 72 72 RenderTableRow {TR} at (0,314) size 784x34 … … 74 74 RenderInline {FONT} at (0,0) size 70x16 75 75 RenderInline {A} at (0,0) size 70x16 [color=#0000EE] 76 RenderText {#text} at (357,-1) size 70x1 676 RenderText {#text} at (357,-1) size 70x17 77 77 text run at (357,0) width 33: "Filter " 78 78 text run at (389,0) width 38: "Design" … … 82 82 RenderInline {U} at (0,0) size 68x16 83 83 RenderInline {A} at (0,0) size 68x16 [color=#0000EE] 84 RenderText {#text} at (358,-1) size 68x1 684 RenderText {#text} at (358,-1) size 68x17 85 85 text run at (358,0) width 37: "Office " 86 86 text run at (394,0) width 32: "Hours" -
trunk/LayoutTests/platform/ios/tables/mozilla/bugs/bug16252-expected.txt
r272100 r278931 26 26 RenderTableRow {TR} at (0,24) size 260x293 27 27 RenderTableCell {TD} at (0,158) size 6x25 [bgcolor=#FFFFFF] [r=1 c=0 rs=1 cs=1] 28 RenderBR {BR} at (2, 2) size 0x2028 RenderBR {BR} at (2,1) size 0x21 29 29 RenderTableCell {TD} at (6,24) size 254x293 [r=1 c=1 rs=1 cs=1] 30 30 RenderTable {TABLE} at (2,2) size 250x272 -
trunk/LayoutTests/platform/ios/tables/mozilla/bugs/bug22513-expected.txt
r275515 r278931 12 12 RenderInline {B} at (0,0) size 62x20 13 13 RenderInline {FONT} at (0,0) size 62x15 14 RenderText {#text} at (19, 0) size 62x1515 text run at (19, 1) width 62: "Downloads"14 RenderText {#text} at (19,-1) size 62x16 15 text run at (19,0) width 62: "Downloads" 16 16 RenderTableCell {TD} at (115,0) size 15x15 [bgcolor=#FFCC00] [r=0 c=2 rs=1 cs=1] 17 17 RenderImage {IMG} at (0,0) size 15x15 -
trunk/LayoutTests/platform/ios/tables/mozilla/bugs/bug82946-2-expected.txt
r272100 r278931 15 15 RenderText {#text} at (0,0) size 0x0 16 16 RenderTableCell {TD} at (763,87) size 4x23 [r=0 c=1 rs=2 cs=1] 17 RenderBR {BR} at (1, 1) size 0x2017 RenderBR {BR} at (1,0) size 0x21 18 18 RenderTableRow {TR} at (0,147) size 768x48 19 19 RenderTableCell {TD} at (2,147) size 765x48 [r=1 c=0 rs=1 cs=2] -
trunk/LayoutTests/platform/ios/tables/mozilla_expected_failures/bugs/bug89315-expected.txt
r275515 r278931 31 31 RenderInline {B} at (0,0) size 55x39 32 32 RenderInline {SPAN} at (0,0) size 55x38 33 RenderText {#text} at (22, 1) size 55x3734 text run at (22, 1) width 55: "Channel"35 text run at (23, 20) width 52: "number"33 RenderText {#text} at (22,0) size 55x38 34 text run at (22,0) width 55: "Channel" 35 text run at (23,19) width 52: "number" 36 36 RenderText {#text} at (0,0) size 0x0 37 37 RenderTableCell {TD} at (98,22) size 171x20 [border: (0.50px solid #000000) (0.50px none #808080)] [r=1 c=1 rs=1 cs=1] 38 38 RenderInline {B} at (0,0) size 95x20 39 39 RenderInline {SPAN} at (0,0) size 95x19 40 RenderText {#text} at (38, 1) size 95x1841 text run at (38, 1) width 95: "Member name"40 RenderText {#text} at (38,0) size 95x19 41 text run at (38,0) width 95: "Member name" 42 42 RenderText {#text} at (0,0) size 0x0 43 43 RenderTableCell {TD} at (268,22) size 100x39 [border: (0.50px solid #000000) (0.50px none #808080)] [r=1 c=2 rs=1 cs=1] … … 129 129 RenderTableCell {TD} at (98,110) size 171x17 [border: (0.50px none #808080) none (0.50px none #808080)] [r=4 c=1 rs=1 cs=1] 130 130 RenderInline {FONT} at (0,0) size 55x16 131 RenderText {#text} at (7, 1) size 55x15132 text run at (7, 1) width 55: "Don Coon"131 RenderText {#text} at (7,0) size 55x16 132 text run at (7,0) width 55: "Don Coon" 133 133 RenderText {#text} at (0,0) size 0x0 134 134 RenderTableCell {TD} at (268,110) size 100x21 [border: (0.50px none #808080) none (0.50px none #808080)] [r=4 c=2 rs=1 cs=1] … … 141 141 RenderTableCell {TD} at (0,130) size 99x17 [border: (0.50px none #808080) none] [r=5 c=0 rs=1 cs=1] 142 142 RenderInline {FONT} at (0,0) size 14x16 143 RenderText {#text} at (42, 1) size 14x15144 text run at (42, 1) width 14: "05"143 RenderText {#text} at (42,0) size 14x16 144 text run at (42,0) width 14: "05" 145 145 RenderText {#text} at (0,0) size 0x0 146 146 RenderTableCell {TD} at (98,130) size 171x33 [border: (0.50px none #808080) none (0.50px none #808080)] [r=5 c=1 rs=1 cs=1] … … 172 172 RenderTableCell {TD} at (0,163) size 99x17 [border: (0.50px none #808080) none] [r=6 c=0 rs=1 cs=1] 173 173 RenderInline {FONT} at (0,0) size 14x16 174 RenderText {#text} at (42, 1) size 14x15175 text run at (42, 1) width 14: "06"174 RenderText {#text} at (42,0) size 14x16 175 text run at (42,0) width 14: "06" 176 176 RenderText {#text} at (0,0) size 0x0 177 177 RenderTableCell {TD} at (98,163) size 171x33 [border: (0.50px none #808080) none (0.50px none #808080)] [r=6 c=1 rs=1 cs=1] 178 178 RenderInline {FONT} at (0,0) size 135x32 179 RenderText {#text} at (7, 1) size 135x31180 text run at (7, 1) width 135: "Gene Pheiffer "181 text run at (7,1 7) width 81: "Alberto Lanzas"179 RenderText {#text} at (7,0) size 135x32 180 text run at (7,0) width 135: "Gene Pheiffer " 181 text run at (7,16) width 81: "Alberto Lanzas" 182 182 RenderText {#text} at (0,0) size 0x0 183 183 RenderTableCell {TD} at (268,163) size 100x33 [border: (0.50px none #808080) none (0.50px none #808080)] [r=6 c=2 rs=1 cs=1] … … 207 207 RenderTableCell {TD} at (98,195) size 171x17 [border: (0.50px none #808080) none (0.50px none #808080)] [r=7 c=1 rs=1 cs=1] 208 208 RenderInline {FONT} at (0,0) size 50x16 209 RenderText {#text} at (7, 1) size 50x15210 text run at (7, 1) width 50: "Phil Cole"209 RenderText {#text} at (7,0) size 50x16 210 text run at (7,0) width 50: "Phil Cole" 211 211 RenderText {#text} at (0,0) size 0x0 212 212 RenderTableCell {TD} at (268,195) size 100x17 [border: (0.50px none #808080) none (0.50px none #808080)] [r=7 c=2 rs=1 cs=1] -
trunk/LayoutTests/platform/mac/fast/text/basic/generic-family-reset-expected.txt
r275515 r278931 81 81 RenderTableCell {TD} at (10,350) size 377x15 [r=5 c=0 rs=1 cs=1] 82 82 RenderInline {TT} at (0,0) size 187x13 83 RenderText {#text} at (1, 1) size 187x1384 text run at (1, 2) width 187: "default font; font-size: 0.8em;"83 RenderText {#text} at (1,0) size 187x14 84 text run at (1,1) width 187: "default font; font-size: 0.8em;" 85 85 RenderText {#text} at (0,0) size 0x0 86 86 RenderTableCell {TD} at (397,349) size 377x17 [r=5 c=1 rs=1 cs=1] -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug106795-expected.txt
r272100 r278931 8 8 RenderTableRow {TR} at (0,0) size 781x38 9 9 RenderTableCell {TD} at (0,8) size 781x21 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 10 RenderBR {BR} at (1, 1) size 0x1910 RenderBR {BR} at (1,0) size 0x20 11 11 RenderTableRow {TR} at (0,37) size 781x6 12 12 RenderTableCell {TD} at (0,37) size 781x6 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1] … … 14 14 RenderTableRow {TR} at (0,42) size 781x38 15 15 RenderTableCell {TD} at (0,51) size 781x21 [bgcolor=#CC0000] [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1] 16 RenderBR {BR} at (1, 1) size 0x1916 RenderBR {BR} at (1,0) size 0x20 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug1188-expected.txt
r275515 r278931 88 88 RenderInline {A} at (0,0) size 132x19 [color=#0000EE] 89 89 RenderInline {FONT} at (0,0) size 132x16 [color=#0066FF] 90 RenderText {#text} at (14, 1) size 132x1691 text run at (14, 2) width 132: "Hassle-Free Upgrades"90 RenderText {#text} at (14,0) size 132x17 91 text run at (14,1) width 132: "Hassle-Free Upgrades" 92 92 RenderText {#text} at (0,0) size 0x0 93 93 RenderTableRow {TR} at (0,157) size 600x20 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug126742-expected.txt
r275515 r278931 38 38 RenderInline {A} at (0,0) size 64x19 [color=#0000EE] 39 39 RenderInline {FONT} at (0,0) size 64x19 40 RenderText {#text} at (360,-1) size 64x 1940 RenderText {#text} at (360,-1) size 64x20 41 41 text run at (360,0) width 64: "Homework" 42 42 RenderTableRow {TR} at (0,187) size 784x33 … … 58 58 RenderInline {A} at (0,0) size 68x19 [color=#0000EE] 59 59 RenderInline {FONT} at (0,0) size 68x19 60 RenderText {#text} at (358,-1) size 22x 1960 RenderText {#text} at (358,-1) size 22x20 61 61 text run at (358,0) width 22: "Lab" 62 62 RenderInline {U} at (0,0) size 47x19 63 RenderText {#text} at (379,-1) size 47x 1963 RenderText {#text} at (379,-1) size 47x20 64 64 text run at (379,0) width 47: "oratory" 65 65 RenderTableRow {TR} at (0,283) size 784x33 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug1318-expected.txt
r275515 r278931 21 21 RenderTableCell {TD} at (0,75) size 558x18 [r=1 c=0 rs=1 cs=1] 22 22 RenderInline {FONT} at (0,0) size 142x16 23 RenderText {#text} at (415, 1) size 142x1624 text run at (415, 2) width 142: "I agree with the program"23 RenderText {#text} at (415,0) size 142x17 24 text run at (415,1) width 142: "I agree with the program" 25 25 RenderText {#text} at (0,0) size 0x0 26 26 RenderTableCell {TD} at (557,74) size 66x20 [r=1 c=1 rs=1 cs=1] … … 29 29 RenderTableCell {TD} at (0,95) size 558x18 [r=2 c=0 rs=1 cs=1] 30 30 RenderInline {FONT} at (0,0) size 153x16 31 RenderText {#text} at (404, 1) size 153x1632 text run at (404, 2) width 153: "I think vouchers are wrong"31 RenderText {#text} at (404,0) size 153x17 32 text run at (404,1) width 153: "I think vouchers are wrong" 33 33 RenderText {#text} at (0,0) size 0x0 34 34 RenderTableCell {TD} at (557,94) size 66x20 [r=2 c=1 rs=1 cs=1] … … 38 38 RenderInline {A} at (0,0) size 76x19 [color=#0000EE] 39 39 RenderInline {FONT} at (0,0) size 76x16 40 RenderText {#text} at (273, 1) size 76x1641 text run at (273, 2) width 76: "View Results"40 RenderText {#text} at (273,0) size 76x17 41 text run at (273,1) width 76: "View Results" 42 42 RenderInline {FONT} at (0,0) size 0x16 43 43 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug16252-expected.txt
r275515 r278931 22 22 RenderInline {FONT} at (0,0) size 245x16 23 23 RenderInline {B} at (0,0) size 245x16 24 RenderText {#text} at (2, 2) size 245x1625 text run at (2, 3) width 245: "CHAMBERLAIN'S CAREER STATISTICS"24 RenderText {#text} at (2,1) size 245x17 25 text run at (2,2) width 245: "CHAMBERLAIN'S CAREER STATISTICS" 26 26 RenderTableRow {TR} at (0,22) size 260x277 27 27 RenderTableCell {TD} at (0,149) size 6x23 [bgcolor=#FFFFFF] [r=1 c=0 rs=1 cs=1] 28 RenderBR {BR} at (2, 2) size 0x1928 RenderBR {BR} at (2,1) size 0x20 29 29 RenderTableCell {TD} at (6,22) size 254x277 [r=1 c=1 rs=1 cs=1] 30 30 RenderTable {TABLE} at (2,2) size 250x256 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug22513-expected.txt
r275515 r278931 12 12 RenderInline {B} at (0,0) size 62x19 13 13 RenderInline {FONT} at (0,0) size 62x13 14 RenderText {#text} at (19, 0) size 62x1315 text run at (19, 1) width 62: "Downloads"14 RenderText {#text} at (19,-1) size 62x14 15 text run at (19,0) width 62: "Downloads" 16 16 RenderTableCell {TD} at (115,0) size 15x15 [bgcolor=#FFCC00] [r=0 c=2 rs=1 cs=1] 17 17 RenderImage {IMG} at (0,0) size 15x15 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug57828-2-expected.txt
r275515 r278931 42 42 RenderInline {FONT} at (0,0) size 152x21 43 43 RenderInline {B} at (0,0) size 152x21 44 RenderText {#text} at (2, 2) size 152x2145 text run at (2, 3) width 152: "Technology News"44 RenderText {#text} at (2,1) size 152x22 45 text run at (2,2) width 152: "Technology News" 46 46 RenderInline {FONT} at (0,0) size 181x16 47 RenderText {#text} at (153, 6) size 181x1648 text run at (153, 7) width 63: " - updated "49 text run at (215, 7) width 119: "12:15 PM ET Oct 24"47 RenderText {#text} at (153,5) size 181x17 48 text run at (153,6) width 63: " - updated " 49 text run at (215,6) width 119: "12:15 PM ET Oct 24" 50 50 RenderText {#text} at (0,0) size 0x0 51 51 RenderTableCell {TD} at (510,0) size 166x26 [r=0 c=1 rs=1 cs=1] -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug60804-expected.txt
r275515 r278931 34 34 RenderTableCell {TD} at (0,1) size 133x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 35 35 RenderInline {FONT} at (0,0) size 92x16 36 RenderText {#text} at (1, 1) size 92x1637 text run at (1, 2) width 92: "American Starlex"36 RenderText {#text} at (1,0) size 92x17 37 text run at (1,1) width 92: "American Starlex" 38 38 RenderTableCell {TD} at (132,8) size 6x4 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 39 39 RenderImage {IMG} at (1,1) size 1x1 40 40 RenderTableCell {TD} at (137,1) size 305x18 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1] 41 41 RenderInline {FONT} at (0,0) size 243x16 42 RenderText {#text} at (1, 1) size 243x1643 text run at (1, 2) width 243: "Digital_Cameras DC200 New|In stock; Kodak"42 RenderText {#text} at (1,0) size 243x17 43 text run at (1,1) width 243: "Digital_Cameras DC200 New|In stock; Kodak" 44 44 RenderTableCell {TD} at (441,8) size 7x4 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1] 45 45 RenderImage {IMG} at (1,1) size 1x1 46 46 RenderTableCell {TD} at (447,1) size 79x18 [border: (1px inset #808080)] [r=0 c=4 rs=1 cs=1] 47 47 RenderInline {FONT} at (0,0) size 44x16 48 RenderText {#text} at (34, 1) size 44x1649 text run at (34, 2) width 44: "$270.00"48 RenderText {#text} at (34,0) size 44x17 49 text run at (34,1) width 44: "$270.00" 50 50 RenderTableCell {TD} at (525,8) size 6x4 [border: (1px inset #808080)] [r=0 c=5 rs=1 cs=1] 51 51 RenderImage {IMG} at (1,1) size 1x1 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug60807-expected.txt
r275515 r278931 34 34 RenderTableCell {TD} at (0,1) size 133x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] 35 35 RenderInline {FONT} at (0,0) size 92x16 36 RenderText {#text} at (1, 1) size 92x1637 text run at (1, 2) width 92: "American Starlex"36 RenderText {#text} at (1,0) size 92x17 37 text run at (1,1) width 92: "American Starlex" 38 38 RenderTableCell {TD} at (132,8) size 6x4 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1] 39 39 RenderImage {IMG} at (1,1) size 1x1 40 40 RenderTableCell {TD} at (137,1) size 305x18 [border: (1px inset #808080)] [r=0 c=2 rs=1 cs=1] 41 41 RenderInline {FONT} at (0,0) size 243x16 42 RenderText {#text} at (1, 1) size 243x1643 text run at (1, 2) width 243: "Digital_Cameras DC200 New|In stock; Kodak"42 RenderText {#text} at (1,0) size 243x17 43 text run at (1,1) width 243: "Digital_Cameras DC200 New|In stock; Kodak" 44 44 RenderTableCell {TD} at (441,8) size 7x4 [border: (1px inset #808080)] [r=0 c=3 rs=1 cs=1] 45 45 RenderImage {IMG} at (1,1) size 1x1 46 46 RenderTableCell {TD} at (447,1) size 79x18 [border: (1px inset #808080)] [r=0 c=4 rs=1 cs=1] 47 47 RenderInline {FONT} at (0,0) size 44x16 48 RenderText {#text} at (34, 1) size 44x1649 text run at (34, 2) width 44: "$270.00"48 RenderText {#text} at (34,0) size 44x17 49 text run at (34,1) width 44: "$270.00" 50 50 RenderTableCell {TD} at (525,8) size 6x4 [border: (1px inset #808080)] [r=0 c=5 rs=1 cs=1] 51 51 RenderImage {IMG} at (1,1) size 1x1 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug82946-2-expected.txt
r272100 r278931 15 15 RenderText {#text} at (0,0) size 0x0 16 16 RenderTableCell {TD} at (763,86) size 4x21 [r=0 c=1 rs=2 cs=1] 17 RenderBR {BR} at (1, 1) size 0x1917 RenderBR {BR} at (1,0) size 0x20 18 18 RenderTableRow {TR} at (0,147) size 768x44 19 19 RenderTableCell {TD} at (2,147) size 765x44 [r=1 c=0 rs=1 cs=2] -
trunk/Source/WebCore/ChangeLog
r278930 r278931 1 2021-06-16 Alan Bujtas <zalan@apple.com> 2 3 Content moves up when hovering over a link on Hacker News 4 https://bugs.webkit.org/show_bug.cgi?id=226852 5 <rdar://78537231> 6 7 Reviewed by Antti Koivisto. 8 9 Legacy line layout integral-rounds the root inline box's vertical position and this integral position 10 gets propagated down to the descendant inline boxes when descendantsHaveSameLineHeightAndBaseline() is true. 11 See LegacyInlineFlowBox::addToLine and LegacyInlineFlowBox::placeBoxesInBlockDirection for more details. 12 This patch attempts to mirror this behavior in IFC. 13 14 Test: fast/inline/hidpi-legacy-integral-rounding-on-inline-boxes.html 15 16 * layout/integration/LayoutIntegrationInlineContentBuilder.cpp: 17 (WebCore::LayoutIntegration::InlineContentBuilder::computeLineLevelVisualAdjustmentsForRuns const): 18 1 19 2021-06-16 Frederic Wang <fwang@igalia.com> 2 20 -
trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContentBuilder.cpp
r278405 r278931 183 183 for (size_t lineIndex = 0; lineIndex < lines.size(); ++lineIndex) { 184 184 auto lineNeedsLegacyIntegralVerticalPosition = [&] { 185 // InlineTree rounds y position to integral value for certain content (see LegacyInlineFlowBox::placeBoxesInBlockDirection). 185 // Legacy inline tree integral rounds the vertical position for certain content (see LegacyInlineFlowBox::placeBoxesInBlockDirection and ::addToLine). 186 auto& rootInlineBox = inlineFormattingState.lineBoxes()[lineIndex].rootInlineBox(); 186 187 auto& nonRootInlineLevelBoxList = inlineFormattingState.lineBoxes()[lineIndex].nonRootInlineLevelBoxes(); 187 188 if (nonRootInlineLevelBoxList.isEmpty()) { … … 189 190 return true; 190 191 } 191 // Text + <br> (or just <br> or text<span></span><br>) behaves like text.192 192 for (auto& inlineLevelBox : nonRootInlineLevelBoxList) { 193 if (inlineLevelBox.isAtomicInlineLevelBox()) { 194 // Content like text<img> prevents legacy snapping. 193 // See shouldClearDescendantsHaveSameLineHeightAndBaseline in LegacyInlineFlowBox::addToLine. 194 auto contentPreventsIntegralSnapping = inlineLevelBox.isAtomicInlineLevelBox() || (inlineLevelBox.isLineBreakBox() && !m_layoutState.inStandardsMode()); 195 if (contentPreventsIntegralSnapping) 195 196 return false; 196 } 197 198 auto& rootInlineBoxStyle = rootInlineBox.style(); 199 auto& inlineLevelBoxStyle = inlineLevelBox.style(); 200 auto stylePreventsIntegralSnapping = rootInlineBoxStyle.lineHeight() != inlineLevelBoxStyle.lineHeight() || inlineLevelBoxStyle.verticalAlign() != VerticalAlign::Baseline; 201 if (stylePreventsIntegralSnapping) 202 return false; 203 204 auto& rootInlineBoxFontMetrics = rootInlineBoxStyle.fontCascade().fontMetrics(); 205 auto& inlineLevelBoxFontMetrics = inlineLevelBoxStyle.fontCascade().fontMetrics(); 206 auto fontPreventsIntegralSnapping = !rootInlineBoxFontMetrics.hasIdenticalAscentDescentAndLineGap(inlineLevelBoxFontMetrics); 207 if (fontPreventsIntegralSnapping) 208 return false; 197 209 } 198 210 return true;
Note:
See TracChangeset
for help on using the changeset viewer.