Title: [282724] trunk/Source/WebCore
Revision
282724
Author
[email protected]
Date
2021-09-18 06:29:11 -0700 (Sat, 18 Sep 2021)

Log Message

[IFC][Integration] Enable surrogate pairs
https://bugs.webkit.org/show_bug.cgi?id=229434

Reviewed by Antti Koivisto.

The "break the content at arbitrary position" feature is already surrogate pair aware, so
let's enable this for IFC.

* layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForCharacter):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (282723 => 282724)


--- trunk/Source/WebCore/ChangeLog	2021-09-18 08:56:27 UTC (rev 282723)
+++ trunk/Source/WebCore/ChangeLog	2021-09-18 13:29:11 UTC (rev 282724)
@@ -1,3 +1,16 @@
+2021-09-18  Alan Bujtas  <[email protected]>
+
+        [IFC][Integration] Enable surrogate pairs
+        https://bugs.webkit.org/show_bug.cgi?id=229434
+
+        Reviewed by Antti Koivisto.
+
+        The "break the content at arbitrary position" feature is already surrogate pair aware, so
+        let's enable this for IFC.
+
+        * layout/integration/LayoutIntegrationCoverage.cpp:
+        (WebCore::LayoutIntegration::canUseForCharacter):
+
 2021-09-18  Myles C. Maxfield  <[email protected]>
 
         [iOS Family] Delete letterpress support

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp (282723 => 282724)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp	2021-09-18 08:56:27 UTC (rev 282723)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp	2021-09-18 13:29:11 UTC (rev 282724)
@@ -411,9 +411,6 @@
 template<> OptionSet<AvoidanceReason> canUseForCharacter(UChar character, IncludeReasons includeReasons)
 {
     OptionSet<AvoidanceReason> reasons;
-    if (U16_IS_SURROGATE(character))
-        SET_REASON_AND_RETURN_IF_NEEDED(FlowTextHasSurrogatePair, reasons, includeReasons);
-
     UCharDirection direction = u_charDirection(character);
     if (direction == U_RIGHT_TO_LEFT || direction == U_RIGHT_TO_LEFT_ARABIC
         || direction == U_RIGHT_TO_LEFT_EMBEDDING || direction == U_RIGHT_TO_LEFT_OVERRIDE
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to