Title: [288417] trunk
Revision
288417
Author
[email protected]
Date
2022-01-23 06:48:40 -0800 (Sun, 23 Jan 2022)

Log Message

[LFC][IFC] Enable unicode-bidi: plaintext for IFC
https://bugs.webkit.org/show_bug.cgi?id=235429

Reviewed by Antti Koivisto.

Source/WebCore:

* layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::printReason):
(WebCore::LayoutIntegration::canUseForStyle):
* layout/integration/LayoutIntegrationCoverage.h:

LayoutTests:

* platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (288416 => 288417)


--- trunk/LayoutTests/ChangeLog	2022-01-23 05:20:57 UTC (rev 288416)
+++ trunk/LayoutTests/ChangeLog	2022-01-23 14:48:40 UTC (rev 288417)
@@ -1,3 +1,12 @@
+2022-01-23  Alan Bujtas  <[email protected]>
+
+        [LFC][IFC] Enable unicode-bidi: plaintext for IFC
+        https://bugs.webkit.org/show_bug.cgi?id=235429
+
+        Reviewed by Antti Koivisto.
+
+        * platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt:
+
 2022-01-22  Alan Bujtas  <[email protected]>
 
         [iOS] Unreviewed gardering

Modified: trunk/LayoutTests/platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt (288416 => 288417)


--- trunk/LayoutTests/platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt	2022-01-23 05:20:57 UTC (rev 288416)
+++ trunk/LayoutTests/platform/mac/fast/text/international/unicode-bidi-plaintext-in-textarea-expected.txt	2022-01-23 14:48:40 UTC (rev 288417)
@@ -17,17 +17,17 @@
   RenderTextControl {TEXTAREA} at (2,2) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
     RenderBlock {DIV} at (3,3) size 365x39
       RenderText {#text} at (336,0) size 365x26
-        text run at (336,0) width 1 RTL: " "
         text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
+        text run at (365,0) width 0: " "
         text run at (0,13) width 29: "hello!"
         text run at (28,13) width 1: " "
-      RenderBR {BR} at (365,26) size 0x13
+      RenderBR {BR} at (0,26) size 0x13
 layer at (10,112) size 371x58 clip at (11,113) size 369x56
   RenderTextControl {TEXTAREA} at (2,68) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
     RenderBlock {DIV} at (3,3) size 365x39
       RenderText {#text} at (336,0) size 365x26
-        text run at (336,0) width 1 RTL: " "
         text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
+        text run at (365,0) width 0: " "
         text run at (0,13) width 29: "hello!"
         text run at (28,13) width 1: " "
       RenderBR {BR} at (0,26) size 0x13
@@ -35,8 +35,8 @@
   RenderTextControl {TEXTAREA} at (2,134) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
     RenderBlock {DIV} at (3,3) size 365x39
       RenderText {#text} at (336,0) size 365x26
-        text run at (336,0) width 1 RTL: " "
         text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
+        text run at (365,0) width 0: " "
         text run at (0,13) width 29: "hello!"
         text run at (28,13) width 1: " "
       RenderBR {BR} at (0,26) size 0x13
@@ -44,8 +44,8 @@
   RenderTextControl {TEXTAREA} at (2,200) size 371x58 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
     RenderBlock {DIV} at (3,3) size 365x39
       RenderText {#text} at (336,0) size 365x26
-        text run at (336,0) width 1 RTL: " "
         text run at (336,0) width 29 RTL: "\x{5E9}\x{5DC}\x{5D5}\x{5DD}!"
+        text run at (365,0) width 0: " "
         text run at (0,13) width 29: "hello!"
         text run at (28,13) width 1: " "
-      RenderBR {BR} at (365,26) size 0x13
+      RenderBR {BR} at (0,26) size 0x13

Modified: trunk/Source/WebCore/ChangeLog (288416 => 288417)


--- trunk/Source/WebCore/ChangeLog	2022-01-23 05:20:57 UTC (rev 288416)
+++ trunk/Source/WebCore/ChangeLog	2022-01-23 14:48:40 UTC (rev 288417)
@@ -1,3 +1,15 @@
+2022-01-23  Alan Bujtas  <[email protected]>
+
+        [LFC][IFC] Enable unicode-bidi: plaintext for IFC
+        https://bugs.webkit.org/show_bug.cgi?id=235429
+
+        Reviewed by Antti Koivisto.
+
+        * layout/integration/LayoutIntegrationCoverage.cpp:
+        (WebCore::LayoutIntegration::printReason):
+        (WebCore::LayoutIntegration::canUseForStyle):
+        * layout/integration/LayoutIntegrationCoverage.h:
+
 2022-01-22  Ben Nham  <[email protected]>
 
         Add PushSubscriptionIdentifier

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp (288416 => 288417)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp	2022-01-23 05:20:57 UTC (rev 288416)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp	2022-01-23 14:48:40 UTC (rev 288417)
@@ -113,9 +113,6 @@
     case AvoidanceReason::FlowHasOverflowNotVisible:
         stream << "overflow: hidden | scroll | auto";
         break;
-    case AvoidanceReason::FlowMayNotBeLTR:
-        stream << "dir may not be LTR";
-        break;
     case AvoidanceReason::FlowHasLineBoxContainProperty:
         stream << "line-box-contain value indicates variable line height";
         break;
@@ -415,8 +412,6 @@
         SET_REASON_AND_RETURN_IF_NEEDED(FlowHasOverflowNotVisible, reasons, includeReasons);
     if (style.textOverflow() == TextOverflow::Ellipsis)
         SET_REASON_AND_RETURN_IF_NEEDED(FlowHasTextOverflow, reasons, includeReasons);
-    if (is<RenderBlockFlow>(renderer) && style.unicodeBidi() == UnicodeBidi::Plaintext)
-        SET_REASON_AND_RETURN_IF_NEEDED(FlowMayNotBeLTR, reasons, includeReasons);
     if (style.writingMode() != WritingMode::TopToBottom)
         SET_REASON_AND_RETURN_IF_NEEDED(FlowIsNotTopToBottom, reasons, includeReasons);
     if (style.textEmphasisFill() != TextEmphasisFill::Filled || style.textEmphasisMark() != TextEmphasisMark::None)

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.h (288416 => 288417)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.h	2022-01-23 05:20:57 UTC (rev 288416)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.h	2022-01-23 14:48:40 UTC (rev 288417)
@@ -53,7 +53,7 @@
     // Unused                                    = 1LLU  << 12,
     FlowHasOverflowNotVisible                    = 1LLU  << 13,
     // Unused                                    = 1LLU  << 14,
-    FlowMayNotBeLTR                              = 1LLU  << 15,
+    // Unused                                    = 1LLU  << 15,
     FlowHasLineBoxContainProperty                = 1LLU  << 16,
     FlowIsNotTopToBottom                         = 1LLU  << 17,
     // Unused                                    = 1LLU  << 18,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to