Title: [288159] trunk
Revision
288159
Author
[email protected]
Date
2022-01-18 16:13:13 -0800 (Tue, 18 Jan 2022)

Log Message

[LFC][Integration] Use IFC for preferred width computation for inline boxes
https://bugs.webkit.org/show_bug.cgi?id=232620

Reviewed by Antti Koivisto.

Source/WebCore:

* rendering/RenderBlockFlow.cpp:

LayoutTests:

* fast/text/hanging-punctuation-variable-font-size-expected.html: Adjust incorrect expected result (Both Chrome and Firefox agree).
* platform/ios/fast/css/word-space-extra-expected.txt: progression
* platform/mac/fast/css/word-space-extra-expected.txt: progression (matching Chrome).
* platform/mac/fast/text/international/003-expected.txt: progression (matching Chrome).
* platform/mac/fast/text/wbr-expected.txt: progression.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (288158 => 288159)


--- trunk/LayoutTests/ChangeLog	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/ChangeLog	2022-01-19 00:13:13 UTC (rev 288159)
@@ -1,3 +1,16 @@
+2022-01-18  Alan Bujtas  <[email protected]>
+
+        [LFC][Integration] Use IFC for preferred width computation for inline boxes
+        https://bugs.webkit.org/show_bug.cgi?id=232620
+
+        Reviewed by Antti Koivisto.
+
+        * fast/text/hanging-punctuation-variable-font-size-expected.html: Adjust incorrect expected result (Both Chrome and Firefox agree).
+        * platform/ios/fast/css/word-space-extra-expected.txt: progression
+        * platform/mac/fast/css/word-space-extra-expected.txt: progression (matching Chrome).
+        * platform/mac/fast/text/international/003-expected.txt: progression (matching Chrome).
+        * platform/mac/fast/text/wbr-expected.txt: progression.
+
 2022-01-18  Arcady Goldmints-Orlov  <[email protected]>
 
         [GLIB] Update test baselines after r288070 allowed LFC integration to work with the complex text path.

Modified: trunk/LayoutTests/fast/text/hanging-punctuation-variable-font-size-expected.html (288158 => 288159)


--- trunk/LayoutTests/fast/text/hanging-punctuation-variable-font-size-expected.html	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/fast/text/hanging-punctuation-variable-font-size-expected.html	2022-01-19 00:13:13 UTC (rev 288159)
@@ -1,7 +1,7 @@
 <head>
 <style>
     body { font-family: 'Ahem'; color:green }
-    .hang { white-space: nowrap; margin:1em; border:1px solid black; float:left }
+    .hang { white-space: nowrap; margin:1em; float:left }
 </style>
 </head>
 <body>

Modified: trunk/LayoutTests/fast/text/hanging-punctuation-variable-font-size.html (288158 => 288159)


--- trunk/LayoutTests/fast/text/hanging-punctuation-variable-font-size.html	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/fast/text/hanging-punctuation-variable-font-size.html	2022-01-19 00:13:13 UTC (rev 288159)
@@ -1,7 +1,7 @@
 <head>
 <style>
     body { font-family: 'Ahem'; color:green }
-    .hang { hanging-punctuation: first last; margin:1em; border:1px solid black; float:left }
+    .hang { hanging-punctuation: first last; margin:1em; float:left }
 </style>
 </head>
 <body>

Modified: trunk/LayoutTests/platform/ios/fast/css/word-space-extra-expected.txt (288158 => 288159)


--- trunk/LayoutTests/platform/ios/fast/css/word-space-extra-expected.txt	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/platform/ios/fast/css/word-space-extra-expected.txt	2022-01-19 00:13:13 UTC (rev 288159)
@@ -6,14 +6,14 @@
       RenderBlock {H2} at (0,0) size 784x30
         RenderText {#text} at (0,1) size 139x28
           text run at (0,1) width 139: "word-spacing"
-      RenderBlock (floating) {PRE} at (0,62) size 986x160
-        RenderBlock {H3} at (0,15) size 986x17
+      RenderBlock (floating) {PRE} at (0,62) size 1258x160
+        RenderBlock {H3} at (0,15) size 1258x17
           RenderText {#text} at (0,0) size 205x16
             text run at (0,0) width 19: "In"
             text run at (38,0) width 19: " a"
             text run at (76,0) width 73: " floated"
             text run at (168,0) width 37: " pre"
-        RenderBlock (anonymous) at (0,46) size 986x113
+        RenderBlock (anonymous) at (0,46) size 1258x113
           RenderText {#text} at (0,0) size 257x28
             text run at (0,0) width 0: " "
             text run at (0,14) width 32: "Word"
@@ -220,7 +220,7 @@
             text run at (1029,98) width 40: " too)"
             text run at (1068,98) width 1: " "
       RenderBlock (anonymous) at (0,49) size 784x185
-        RenderBR {BR} at (985,0) size 1x19
+        RenderBR {BR} at (1257,0) size 1x19
       RenderBlock {PRE} at (0,249) size 784x144
         RenderBlock {H3} at (0,0) size 784x16
           RenderText {#text} at (0,0) size 241x16
@@ -668,11 +668,11 @@
       RenderBlock {H2} at (0,772) size 784x31
         RenderText {#text} at (0,1) size 140x28
           text run at (0,1) width 140: "letter-spacing"
-      RenderBlock (floating) {PRE} at (0,835) size 1191x159
-        RenderBlock {H3} at (0,15) size 1191x17
+      RenderBlock (floating) {PRE} at (0,835) size 1498x159
+        RenderBlock {H3} at (0,15) size 1498x17
           RenderText {#text} at (0,0) size 225x16
             text run at (0,0) width 225: "In a floated pre"
-        RenderBlock (anonymous) at (0,46) size 1191x113
+        RenderBlock (anonymous) at (0,46) size 1498x113
           RenderText {#text} at (0,0) size 282x28
             text run at (0,0) width 0: " "
             text run at (0,14) width 282: "Letter   spacing test "
@@ -807,7 +807,7 @@
             text run at (691,98) width 564: ". (with monospace font from elements to too)"
             text run at (1254,98) width 1: " "
       RenderBlock (anonymous) at (0,822) size 784x185
-        RenderBR {BR} at (1190,0) size 1x19
+        RenderBR {BR} at (1497,0) size 1x19
       RenderBlock {PRE} at (0,1021) size 784x144
         RenderBlock {H3} at (0,0) size 784x16
           RenderText {#text} at (0,0) size 281x16
@@ -1112,14 +1112,14 @@
       RenderBlock {H2} at (0,1578) size 784x31
         RenderText {#text} at (0,1) size 133x28
           text run at (0,1) width 133: "both-spacing"
-      RenderBlock (floating) {PRE} at (0,1641) size 1451x159
-        RenderBlock {H3} at (0,15) size 1451x17
+      RenderBlock (floating) {PRE} at (0,1641) size 2013x159
+        RenderBlock {H3} at (0,15) size 2013x17
           RenderText {#text} at (0,0) size 285x16
             text run at (0,0) width 29: "In"
             text run at (48,0) width 29: " a"
             text run at (96,0) width 113: " floated"
             text run at (228,0) width 57: " pre"
-        RenderBlock (anonymous) at (0,46) size 1451x113
+        RenderBlock (anonymous) at (0,46) size 2013x113
           RenderText {#text} at (0,0) size 537x28
             text run at (0,0) width 0: " "
             text run at (0,14) width 52: "Word"
@@ -1340,7 +1340,7 @@
             text run at (1665,98) width 65: " too)"
             text run at (1729,98) width 1: " "
       RenderBlock (anonymous) at (0,1628) size 784x185
-        RenderBR {BR} at (1450,0) size 1x19
+        RenderBR {BR} at (2012,0) size 1x19
       RenderBlock {PRE} at (0,1827) size 784x144
         RenderBlock {H3} at (0,0) size 784x16
           RenderText {#text} at (0,0) size 341x16

Modified: trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt (288158 => 288159)


--- trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/platform/mac/fast/css/word-space-extra-expected.txt	2022-01-19 00:13:13 UTC (rev 288159)
@@ -6,14 +6,14 @@
       RenderBlock {H2} at (0,0) size 769x28
         RenderText {#text} at (0,0) size 139x28
           text run at (0,0) width 139: "word-spacing"
-      RenderBlock (floating) {PRE} at (0,60) size 986x169
-        RenderBlock {H3} at (0,15) size 986x18
+      RenderBlock (floating) {PRE} at (0,60) size 1258x169
+        RenderBlock {H3} at (0,15) size 1258x18
           RenderText {#text} at (0,0) size 205x17
             text run at (0,0) width 19: "In"
             text run at (38,0) width 19: " a"
             text run at (76,0) width 73: " floated"
             text run at (168,0) width 37: " pre"
-        RenderBlock (anonymous) at (0,47) size 986x121
+        RenderBlock (anonymous) at (0,47) size 1258x121
           RenderText {#text} at (0,0) size 257x30
             text run at (0,0) width 0: " "
             text run at (0,15) width 32: "Word"
@@ -220,7 +220,7 @@
             text run at (1029,105) width 40: " too)"
             text run at (1068,105) width 1: " "
       RenderBlock (anonymous) at (0,47) size 769x194
-        RenderBR {BR} at (985,0) size 1x18
+        RenderBR {BR} at (1257,0) size 1x18
       RenderBlock {PRE} at (0,256) size 769x153
         RenderBlock {H3} at (0,0) size 769x17
           RenderText {#text} at (0,0) size 241x17
@@ -668,11 +668,11 @@
       RenderBlock {H2} at (0,757) size 769x29
         RenderText {#text} at (0,0) size 140x28
           text run at (0,0) width 140: "letter-spacing"
-      RenderBlock (floating) {PRE} at (0,818) size 1191x168
-        RenderBlock {H3} at (0,15) size 1191x18
+      RenderBlock (floating) {PRE} at (0,818) size 1498x168
+        RenderBlock {H3} at (0,15) size 1498x18
           RenderText {#text} at (0,0) size 225x17
             text run at (0,0) width 225: "In a floated pre"
-        RenderBlock (anonymous) at (0,47) size 1191x121
+        RenderBlock (anonymous) at (0,47) size 1498x121
           RenderText {#text} at (0,0) size 282x30
             text run at (0,0) width 0: " "
             text run at (0,15) width 282: "Letter   spacing test "
@@ -807,7 +807,7 @@
             text run at (691,105) width 564: ". (with monospace font from elements to too)"
             text run at (1254,105) width 1: " "
       RenderBlock (anonymous) at (0,805) size 769x194
-        RenderBR {BR} at (1190,0) size 1x18
+        RenderBR {BR} at (1497,0) size 1x18
       RenderBlock {PRE} at (0,1013) size 769x153
         RenderBlock {H3} at (0,0) size 769x17
           RenderText {#text} at (0,0) size 281x17
@@ -1112,14 +1112,14 @@
       RenderBlock {H2} at (0,1546) size 769x29
         RenderText {#text} at (0,0) size 133x28
           text run at (0,0) width 133: "both-spacing"
-      RenderBlock (floating) {PRE} at (0,1607) size 1451x168
-        RenderBlock {H3} at (0,15) size 1451x18
+      RenderBlock (floating) {PRE} at (0,1607) size 2013x168
+        RenderBlock {H3} at (0,15) size 2013x18
           RenderText {#text} at (0,0) size 285x17
             text run at (0,0) width 29: "In"
             text run at (48,0) width 29: " a"
             text run at (96,0) width 113: " floated"
             text run at (228,0) width 57: " pre"
-        RenderBlock (anonymous) at (0,47) size 1451x121
+        RenderBlock (anonymous) at (0,47) size 2013x121
           RenderText {#text} at (0,0) size 537x30
             text run at (0,0) width 0: " "
             text run at (0,15) width 52: "Word"
@@ -1340,7 +1340,7 @@
             text run at (1665,105) width 65: " too)"
             text run at (1729,105) width 1: " "
       RenderBlock (anonymous) at (0,1594) size 769x194
-        RenderBR {BR} at (1450,0) size 1x18
+        RenderBR {BR} at (2012,0) size 1x18
       RenderBlock {PRE} at (0,1802) size 769x153
         RenderBlock {H3} at (0,0) size 769x17
           RenderText {#text} at (0,0) size 341x17

Modified: trunk/LayoutTests/platform/mac/fast/text/international/003-expected.txt (288158 => 288159)


--- trunk/LayoutTests/platform/mac/fast/text/international/003-expected.txt	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/platform/mac/fast/text/international/003-expected.txt	2022-01-19 00:13:13 UTC (rev 288159)
@@ -3,80 +3,87 @@
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
-      RenderTable {TABLE} at (0,0) size 784x372 [border: (5px outset #808080)]
-        RenderTableSection {TBODY} at (5,5) size 774x362
-          RenderTableRow {TR} at (0,2) size 774x358
-            RenderTableCell {TD} at (2,179) size 716x4 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
-            RenderTableCell {TD} at (720,2) size 52x358 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
+      RenderTable {TABLE} at (0,0) size 784x548 [border: (5px outset #808080)]
+        RenderTableSection {TBODY} at (5,5) size 774x538
+          RenderTableRow {TR} at (0,2) size 774x534
+            RenderTableCell {TD} at (2,267) size 732x4 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+            RenderTableCell {TD} at (736,2) size 36x534 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
                 RenderText {#text} at (2,5) size 32x18
                   text run at (2,5) width 32: "\x{5CA1}\x{5C71}"
-              RenderText {#text} at (34,5) size 16x18
-                text run at (34,5) width 16: "\x{FF5C}"
+              RenderText {#text} at (2,27) size 16x18
+                text run at (2,27) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x40 [color=#0000EE]
+                RenderText {#text} at (18,27) size 32x40
+                  text run at (18,27) width 16: "\x{5E83}"
+                  text run at (2,49) width 16: "\x{5CF6}"
+              RenderText {#text} at (18,49) size 16x18
+                text run at (18,49) width 16: "\x{FF5C}"
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (2,27) size 32x18
-                  text run at (2,27) width 32: "\x{5E83}\x{5CF6}"
-              RenderText {#text} at (34,27) size 16x18
-                text run at (34,27) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (2,49) size 32x18
-                  text run at (2,49) width 32: "\x{5C71}\x{53E3}"
-              RenderText {#text} at (34,49) size 16x18
-                text run at (34,49) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
                 RenderText {#text} at (2,71) size 32x18
-                  text run at (2,71) width 32: "\x{5FB3}\x{5CF6}"
-              RenderText {#text} at (34,71) size 16x18
-                text run at (34,71) width 16: "\x{FF5C}"
+                  text run at (2,71) width 32: "\x{5C71}\x{53E3}"
+              RenderText {#text} at (2,93) size 16x18
+                text run at (2,93) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x40 [color=#0000EE]
+                RenderText {#text} at (18,93) size 32x40
+                  text run at (18,93) width 16: "\x{5FB3}"
+                  text run at (2,115) width 16: "\x{5CF6}"
+              RenderText {#text} at (18,115) size 16x18
+                text run at (18,115) width 16: "\x{FF5C}"
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (2,93) size 32x18
-                  text run at (2,93) width 32: "\x{9999}\x{5DDD}"
-              RenderText {#text} at (34,93) size 16x18
-                text run at (34,93) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (2,115) size 32x18
-                  text run at (2,115) width 32: "\x{611B}\x{5A9B}"
-              RenderText {#text} at (34,115) size 16x18
-                text run at (34,115) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
                 RenderText {#text} at (2,137) size 32x18
-                  text run at (2,137) width 32: "\x{9AD8}\x{77E5}"
-              RenderText {#text} at (34,137) size 16x18
-                text run at (34,137) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 48x42 [color=#0000EE]
-                RenderText {#text} at (2,159) size 48x42
-                  text run at (2,159) width 48: "\x{798F}\x{5CA1}\x{30FB}"
-                  text run at (2,183) width 48: "\x{5317}\x{4E5D}\x{5DDE}"
-              RenderText {#text} at (2,205) size 16x18
-                text run at (2,205) width 16: "\x{FF5C}"
+                  text run at (2,137) width 32: "\x{9999}\x{5DDD}"
+              RenderText {#text} at (2,159) size 16x18
+                text run at (2,159) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x40 [color=#0000EE]
+                RenderText {#text} at (18,159) size 32x40
+                  text run at (18,159) width 16: "\x{611B}"
+                  text run at (2,181) width 16: "\x{5A9B}"
+              RenderText {#text} at (18,181) size 16x18
+                text run at (18,181) width 16: "\x{FF5C}"
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (18,205) size 32x18
-                  text run at (18,205) width 32: "\x{4F50}\x{8CC0}"
-              RenderText {#text} at (2,227) size 16x18
-                text run at (2,227) width 16: "\x{FF5C}"
+                RenderText {#text} at (2,203) size 32x18
+                  text run at (2,203) width 32: "\x{9AD8}\x{77E5}"
+              RenderText {#text} at (2,225) size 16x18
+                text run at (2,225) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x86 [color=#0000EE]
+                RenderText {#text} at (18,225) size 32x86
+                  text run at (18,225) width 16: "\x{798F}"
+                  text run at (2,247) width 32: "\x{5CA1}\x{30FB}"
+                  text run at (2,271) width 32: "\x{5317}\x{4E5D}"
+                  text run at (2,293) width 16: "\x{5DDE}"
+              RenderText {#text} at (18,293) size 16x18
+                text run at (18,293) width 16: "\x{FF5C}"
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (18,227) size 32x18
-                  text run at (18,227) width 32: "\x{9577}\x{5D0E}"
-              RenderText {#text} at (2,249) size 16x18
-                text run at (2,249) width 16: "\x{FF5C}"
+                RenderText {#text} at (2,315) size 32x18
+                  text run at (2,315) width 32: "\x{4F50}\x{8CC0}"
+              RenderText {#text} at (2,337) size 16x18
+                text run at (2,337) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x40 [color=#0000EE]
+                RenderText {#text} at (18,337) size 32x40
+                  text run at (18,337) width 16: "\x{9577}"
+                  text run at (2,359) width 16: "\x{5D0E}"
+              RenderText {#text} at (18,359) size 16x18
+                text run at (18,359) width 16: "\x{FF5C}"
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (18,249) size 32x18
-                  text run at (18,249) width 32: "\x{718A}\x{672C}"
-              RenderText {#text} at (2,271) size 16x18
-                text run at (2,271) width 16: "\x{FF5C}"
+                RenderText {#text} at (2,381) size 32x18
+                  text run at (2,381) width 32: "\x{718A}\x{672C}"
+              RenderText {#text} at (2,403) size 16x18
+                text run at (2,403) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x40 [color=#0000EE]
+                RenderText {#text} at (18,403) size 32x40
+                  text run at (18,403) width 16: "\x{5927}"
+                  text run at (2,425) width 16: "\x{5206}"
+              RenderText {#text} at (18,425) size 16x18
+                text run at (18,425) width 16: "\x{FF5C}"
               RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (18,271) size 32x18
-                  text run at (18,271) width 32: "\x{5927}\x{5206}"
-              RenderText {#text} at (2,293) size 16x18
-                text run at (2,293) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
-                RenderText {#text} at (18,293) size 32x18
-                  text run at (18,293) width 32: "\x{5BAE}\x{5D0E}"
-              RenderText {#text} at (2,315) size 16x18
-                text run at (2,315) width 16: "\x{FF5C}"
-              RenderInline {A} at (0,0) size 48x40 [color=#0000EE]
-                RenderText {#text} at (18,315) size 48x40
-                  text run at (18,315) width 32: "\x{9E7F}\x{5150}"
-                  text run at (2,337) width 16: "\x{5CF6}"
-              RenderText {#text} at (18,337) size 16x18
-                text run at (18,337) width 16: "\x{FF5C}"
+                RenderText {#text} at (2,447) size 32x18
+                  text run at (2,447) width 32: "\x{5BAE}\x{5D0E}"
+              RenderText {#text} at (2,469) size 16x18
+                text run at (2,469) width 16: "\x{FF5C}"
+              RenderInline {A} at (0,0) size 32x40 [color=#0000EE]
+                RenderText {#text} at (18,469) size 32x40
+                  text run at (18,469) width 16: "\x{9E7F}"
+                  text run at (2,491) width 32: "\x{5150}\x{5CF6}"
+              RenderText {#text} at (2,513) size 16x18
+                text run at (2,513) width 16: "\x{FF5C}"

Modified: trunk/LayoutTests/platform/mac/fast/text/wbr-expected.txt (288158 => 288159)


--- trunk/LayoutTests/platform/mac/fast/text/wbr-expected.txt	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/LayoutTests/platform/mac/fast/text/wbr-expected.txt	2022-01-19 00:13:13 UTC (rev 288159)
@@ -48,7 +48,7 @@
       RenderTable {TABLE} at (0,300) size 769x20
         RenderTableSection {TBODY} at (0,0) size 769x20
           RenderTableRow {TR} at (0,0) size 769x20
-            RenderTableCell {TD} at (0,0) size 258x20 [border: (1px solid #008000)] [r=0 c=0 rs=1 cs=1]
+            RenderTableCell {TD} at (0,0) size 486x20 [border: (1px solid #008000)] [r=0 c=0 rs=1 cs=1]
               RenderInline {NOBR} at (0,0) size 484x18
                 RenderText {#text} at (1,1) size 228x18
                   text run at (1,1) width 228: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
@@ -55,7 +55,7 @@
                 RenderWordBreak {WBR} at (0,0) size 0x0
                 RenderText {#text} at (228,1) size 257x18
                   text run at (228,1) width 257: "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
-            RenderTableCell {TD} at (258,10) size 511x0 [r=0 c=1 rs=1 cs=1]
+            RenderTableCell {TD} at (485,10) size 284x0 [r=0 c=1 rs=1 cs=1]
       RenderBlock {P} at (0,336) size 769x18
         RenderText {#text} at (0,0) size 225x18
           text run at (0,0) width 225: "Using <wbr> to break three words."
@@ -97,7 +97,7 @@
       RenderTable {TABLE} at (0,572) size 769x20
         RenderTableSection {TBODY} at (0,0) size 769x20
           RenderTableRow {TR} at (0,0) size 769x20
-            RenderTableCell {TD} at (0,0) size 194x20 [border: (1px solid #008000)] [r=0 c=0 rs=1 cs=1]
+            RenderTableCell {TD} at (0,0) size 535x20 [border: (1px solid #008000)] [r=0 c=0 rs=1 cs=1]
               RenderInline {NOBR} at (0,0) size 533x18
                 RenderText {#text} at (1,1) size 171x18
                   text run at (1,1) width 171: "aaaaaaaaaaaaaaaaaaaaaaaa"
@@ -107,7 +107,7 @@
                 RenderWordBreak {WBR} at (0,0) size 0x0
                 RenderText {#text} at (363,1) size 171x18
                   text run at (363,1) width 171: "cccccccccccccccccccccccc"
-            RenderTableCell {TD} at (194,10) size 575x0 [r=0 c=1 rs=1 cs=1]
+            RenderTableCell {TD} at (534,10) size 235x0 [r=0 c=1 rs=1 cs=1]
       RenderBlock {P} at (0,608) size 769x18
         RenderText {#text} at (0,0) size 443x18
           text run at (0,0) width 443: "Spaces both before and after <wbr> to check for collapsing behavior."

Modified: trunk/Source/WebCore/ChangeLog (288158 => 288159)


--- trunk/Source/WebCore/ChangeLog	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/Source/WebCore/ChangeLog	2022-01-19 00:13:13 UTC (rev 288159)
@@ -1,3 +1,12 @@
+2022-01-18  Alan Bujtas  <[email protected]>
+
+        [LFC][Integration] Use IFC for preferred width computation for inline boxes
+        https://bugs.webkit.org/show_bug.cgi?id=232620
+
+        Reviewed by Antti Koivisto.
+
+        * rendering/RenderBlockFlow.cpp:
+
 2022-01-18  ChangSeok Oh  <[email protected]>
 
         [GTK] Implement native form validation bubbles for GTK4

Modified: trunk/Source/WebCore/rendering/RenderBlockFlow.cpp (288158 => 288159)


--- trunk/Source/WebCore/rendering/RenderBlockFlow.cpp	2022-01-19 00:11:37 UTC (rev 288158)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp	2022-01-19 00:13:13 UTC (rev 288159)
@@ -70,7 +70,7 @@
 namespace WebCore {
 
 #define ENABLE_MODERN_PREFERRED_WIDTH_COMPUTATION 1
-#define ENABLE_MODERN_PREFERRED_WIDTH_COMPUTATION_FOR_INLINE_BOXES 0
+#define ENABLE_MODERN_PREFERRED_WIDTH_COMPUTATION_FOR_INLINE_BOXES 1
 
 WTF_MAKE_ISO_ALLOCATED_IMPL(RenderBlockFlow);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to