RESOLVED FIXED 168198
Update isEmojiGroupCandidate() to the latest version of Unicode
https://bugs.webkit.org/show_bug.cgi?id=168198
Summary Update isEmojiGroupCandidate() to the latest version of Unicode
Myles C. Maxfield
Reported 2017-02-12 13:46:01 PST
In the latest version of Unicode, many more emoji are allowed to join. Instead of checking each individual range, we should just check to see if the character is: U+2640 FEMALE SIGN U+2642 MALE SIGN U+26F9 PERSON WITH BALL U+2695 STAFF OF AESCULAPIUS U+2696 SCALES U+2708 AIRPLANE U+2764 HEAVY BLACK HEART The Unicode block is UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS The Unicode block is UBLOCK_EMOTICONS The Unicode block is UBLOCK_TRANSPORT_AND_MAP_SYMBOLS The Unicode block is UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS Alternatively, instead of checking individual code points at all, we may wish to simply check if the block is UBLOCK_MISCELLANEOUS_SYMBOLS or UBLOCK_DINGBATS
Attachments
Patch (3.52 KB, patch)
2017-02-13 12:03 PST, Myles C. Maxfield
no flags
Patch (10.67 KB, patch)
2017-02-13 12:14 PST, Myles C. Maxfield
no flags
Patch (148.99 KB, patch)
2017-02-13 17:27 PST, Myles C. Maxfield
no flags
Archive of layout-test-results from ews126 for ios-simulator-wk2 (1.11 MB, application/zip)
2017-02-13 18:23 PST, Build Bot
no flags
Patch (286.51 KB, patch)
2017-02-13 23:13 PST, Myles C. Maxfield
no flags
Patch (1.52 KB, patch)
2017-03-08 10:18 PST, Michael Catanzaro
no flags
Radar WebKit Bug Importer
Comment 1 2017-02-12 13:46:26 PST
Myles C. Maxfield
Comment 2 2017-02-13 12:03:29 PST
Myles C. Maxfield
Comment 3 2017-02-13 12:14:25 PST
Myles C. Maxfield
Comment 4 2017-02-13 17:27:34 PST
Build Bot
Comment 5 2017-02-13 18:23:16 PST
Comment on attachment 301423 [details] Patch Attachment 301423 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3082376 New failing tests: editing/deleting/delete-emoji.html
Build Bot
Comment 6 2017-02-13 18:23:19 PST
Created attachment 301432 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Myles C. Maxfield
Comment 7 2017-02-13 23:13:37 PST
WebKit Commit Bot
Comment 8 2017-03-06 21:37:39 PST
Comment on attachment 301467 [details] Patch Clearing flags on attachment: 301467 Committed r213499: <http://trac.webkit.org/changeset/213499>
WebKit Commit Bot
Comment 9 2017-03-06 21:37:46 PST
All reviewed patches have been landed. Closing bug.
Michael Catanzaro
Comment 10 2017-03-07 14:08:25 PST
Hey Myles, the ICU_HEADERS_UNDERSTAND_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS case is missing a return statement when if (useSupplementalSymbolsAndPictographs) is false! Bad! [3479/5652] Building CXX object Source...ir/platform/graphics/FontCascade.cpp.o In file included from ../../Source/WebCore/platform/graphics/FontCascade.cpp:27:0: ../../Source/WebCore/platform/text/CharacterProperties.h: In function ‘bool WebCore::isEmojiGroupCandidate(UChar32)’: ../../Source/WebCore/platform/text/CharacterProperties.h:62:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ [3483/5652] Building CXX object Source...m/graphics/ComplexTextController.cpp.o In file included from ../../Source/WebCore/platform/graphics/ComplexTextController.cpp:28:0: ../../Source/WebCore/platform/text/CharacterProperties.h: In function ‘bool WebCore::isEmojiGroupCandidate(UChar32)’: ../../Source/WebCore/platform/text/CharacterProperties.h:62:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ [3746/5652] Building CXX object Source...WebCore.dir/rendering/RenderText.cpp.o In file included from ../../Source/WebCore/rendering/RenderText.cpp:31:0: ../../Source/WebCore/platform/text/CharacterProperties.h: In function ‘bool WebCore::isEmojiGroupCandidate(UChar32)’: ../../Source/WebCore/platform/text/CharacterProperties.h:62:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Problem is... they seem bogus.
Michael Catanzaro
Comment 11 2017-03-07 14:09:11 PST
(In reply to comment #10) > Problem is... they seem bogus. Whoops, I meant to delete that bit of the comment. I at first got confused and didn't notice the problem.
Michael Catanzaro
Comment 12 2017-03-08 10:17:05 PST
litherum: mcatanzaro: the #else should be changed to an #endif
Michael Catanzaro
Comment 13 2017-03-08 10:18:27 PST
WebKit Commit Bot
Comment 14 2017-03-08 18:06:27 PST
Comment on attachment 303819 [details] Patch Clearing flags on attachment: 303819 Committed r213616: <http://trac.webkit.org/changeset/213616>
WebKit Commit Bot
Comment 15 2017-03-08 18:06:33 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.