Title: [233345] trunk
Revision
233345
Author
[email protected]
Date
2018-06-28 18:19:51 -0700 (Thu, 28 Jun 2018)

Log Message

Find in page for typographic quotes does not find low (German) quotes
https://bugs.webkit.org/show_bug.cgi?id=187164
<rdar://problem/29612785>
Source/WebCore:

Patch by Olivia Barnett <[email protected]> on 2018-06-28
Reviewed by Tim Horton.

Added additional quote test to LayoutTests/fast/text/find-quotes.html.

Added functionality to replace German quotes when matching.

* editing/TextIterator.cpp:
(WebCore::foldQuoteMark):
(WebCore::foldQuoteMarks):

Source/WTF:

Patch by Olivia Barnett <[email protected]> on 2018-06-28
Reviewed by Tim Horton.

Added Unicode definitions for German quotation marks.

* wtf/unicode/CharacterNames.h:

LayoutTests:

Patch by Olivia Barnett <[email protected]> on 2018-06-28
Reviewed by Tim Horton.

Added additional test for German quotes.

* fast/text/find-quotes.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (233344 => 233345)


--- trunk/LayoutTests/ChangeLog	2018-06-29 01:00:40 UTC (rev 233344)
+++ trunk/LayoutTests/ChangeLog	2018-06-29 01:19:51 UTC (rev 233345)
@@ -1,3 +1,15 @@
+2018-06-28  Olivia Barnett  <[email protected]>
+        
+        Find in page for typographic quotes does not find low (German) quotes
+        https://bugs.webkit.org/show_bug.cgi?id=187164
+        <rdar://problem/29612785>
+       
+        Reviewed by Tim Horton.
+
+        Added additional test for German quotes.
+
+        * fast/text/find-quotes.html:
+
 2018-06-28  Zalan Bujtas  <[email protected]>
 
         [iOS] Unreviewed test gardening.

Modified: trunk/LayoutTests/fast/text/find-quotes.html (233344 => 233345)


--- trunk/LayoutTests/fast/text/find-quotes.html	2018-06-29 01:00:40 UTC (rev 233344)
+++ trunk/LayoutTests/fast/text/find-quotes.html	2018-06-29 01:19:51 UTC (rev 233345)
@@ -15,7 +15,9 @@
         var hebrewPunctuationGeresh = String.fromCharCode(0x05F3);
         var hebrewPunctuationGershayim = String.fromCharCode(0x05F4);
         var leftDoubleQuotationMark = String.fromCharCode(0x201C);
+        var leftLowDoubleQuotationMark = String.fromCharCode(0x201E);
         var leftSingleQuotationMark = String.fromCharCode(0x2018);
+        var leftLowSingleQuotationMark = String.fromCharCode(0x201A);
         var quotationMark = '"';
         var rightDoubleQuotationMark = String.fromCharCode(0x201D);
         var rightSingleQuotationMark = String.fromCharCode(0x2019);
@@ -49,8 +51,8 @@
             if (window.testRunner)
                 testRunner.dumpAsText();
 
-            var singleQuotes = [ "apostrophe", "hebrewPunctuationGeresh", "leftSingleQuotationMark", "rightSingleQuotationMark" ];
-            var doubleQuotes = [ "quotationMark", "hebrewPunctuationGershayim", "leftDoubleQuotationMark", "rightDoubleQuotationMark" ];
+            var singleQuotes = [ "apostrophe", "hebrewPunctuationGeresh", "leftSingleQuotationMark", "rightSingleQuotationMark", "leftLowSingleQuotationMark"];
+            var doubleQuotes = [ "quotationMark", "hebrewPunctuationGershayim", "leftDoubleQuotationMark", "rightDoubleQuotationMark", "leftLowDoubleQuotationMark"];
 
             for (var i = 0; i < singleQuotes.length; ++i) {
                 for (var j = 0; j < singleQuotes.length; ++j)

Modified: trunk/Source/WTF/ChangeLog (233344 => 233345)


--- trunk/Source/WTF/ChangeLog	2018-06-29 01:00:40 UTC (rev 233344)
+++ trunk/Source/WTF/ChangeLog	2018-06-29 01:19:51 UTC (rev 233345)
@@ -1,3 +1,15 @@
+2018-06-28  Olivia Barnett  <[email protected]>
+
+        Find in page for typographic quotes does not find low (German) quotes
+        https://bugs.webkit.org/show_bug.cgi?id=187164
+        <rdar://problem/29612785>
+
+        Reviewed by Tim Horton.
+
+        Added Unicode definitions for German quotation marks.
+
+        * wtf/unicode/CharacterNames.h:
+
 2018-06-27  Jonathan Bedard  <[email protected]>
 
         Enable WebKit iOS 12 build

Modified: trunk/Source/WTF/wtf/unicode/CharacterNames.h (233344 => 233345)


--- trunk/Source/WTF/wtf/unicode/CharacterNames.h	2018-06-29 01:00:40 UTC (rev 233344)
+++ trunk/Source/WTF/wtf/unicode/CharacterNames.h	2018-06-29 01:19:51 UTC (rev 233345)
@@ -60,7 +60,9 @@
 const UChar ideographicFullStop = 0x3002;
 const UChar ideographicSpace = 0x3000;
 const UChar leftDoubleQuotationMark = 0x201C;
+const UChar leftLowDoubleQuotationMark = 0x201E;
 const UChar leftSingleQuotationMark = 0x2018;
+const UChar leftLowSingleQuotationMark = 0x201A;
 const UChar leftToRightEmbed = 0x202A;
 const UChar leftToRightIsolate = 0x2066;
 const UChar leftToRightMark = 0x200E;
@@ -125,7 +127,9 @@
 using WTF::Unicode::ideographicFullStop;
 using WTF::Unicode::ideographicSpace;
 using WTF::Unicode::leftDoubleQuotationMark;
+using WTF::Unicode::leftLowDoubleQuotationMark;
 using WTF::Unicode::leftSingleQuotationMark;
+using WTF::Unicode::leftLowSingleQuotationMark;
 using WTF::Unicode::leftToRightEmbed;
 using WTF::Unicode::leftToRightIsolate;
 using WTF::Unicode::leftToRightMark;

Modified: trunk/Source/WebCore/ChangeLog (233344 => 233345)


--- trunk/Source/WebCore/ChangeLog	2018-06-29 01:00:40 UTC (rev 233344)
+++ trunk/Source/WebCore/ChangeLog	2018-06-29 01:19:51 UTC (rev 233345)
@@ -1,3 +1,19 @@
+2018-06-28  Olivia Barnett  <[email protected]>
+
+        Find in page for typographic quotes does not find low (German) quotes
+        https://bugs.webkit.org/show_bug.cgi?id=187164
+        <rdar://problem/29612785>
+
+        Reviewed by Tim Horton.
+
+        Added additional quote test to LayoutTests/fast/text/find-quotes.html.
+
+        Added functionality to replace German quotes when matching.
+
+        * editing/TextIterator.cpp:
+        (WebCore::foldQuoteMark):
+        (WebCore::foldQuoteMarks):
+
 2018-06-28  Antti Koivisto  <[email protected]>
 
         REGRESSION (233281): fast/dom/location-new-window-no-crash.html and some other tests are timing out

Modified: trunk/Source/WebCore/editing/TextIterator.cpp (233344 => 233345)


--- trunk/Source/WebCore/editing/TextIterator.cpp	2018-06-29 01:00:40 UTC (rev 233344)
+++ trunk/Source/WebCore/editing/TextIterator.cpp	2018-06-29 01:19:51 UTC (rev 233345)
@@ -1756,10 +1756,12 @@
     switch (c) {
         case hebrewPunctuationGershayim:
         case leftDoubleQuotationMark:
+        case leftLowDoubleQuotationMark:
         case rightDoubleQuotationMark:
             return '"';
         case hebrewPunctuationGeresh:
         case leftSingleQuotationMark:
+        case leftLowSingleQuotationMark:
         case rightSingleQuotationMark:
             return '\'';
         default:
@@ -1775,7 +1777,9 @@
     string.replace(hebrewPunctuationGeresh, '\'');
     string.replace(hebrewPunctuationGershayim, '"');
     string.replace(leftDoubleQuotationMark, '"');
+    string.replace(leftLowDoubleQuotationMark, '"');
     string.replace(leftSingleQuotationMark, '\'');
+    string.replace(leftLowSingleQuotationMark, '\'');
     string.replace(rightDoubleQuotationMark, '"');
     string.replace(rightSingleQuotationMark, '\'');
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to