RESOLVED FIXED 165023
Make normal case fast in the input element limitString function
https://bugs.webkit.org/show_bug.cgi?id=165023
Summary Make normal case fast in the input element limitString function
Darin Adler
Reported 2016-11-21 21:56:49 PST
Make normal case fast in the input element limitString function
Attachments
Patch (46.59 KB, patch)
2016-11-21 22:13 PST, Darin Adler
mitz: review+
Darin Adler
Comment 1 2016-11-21 22:13:21 PST
mitz
Comment 2 2016-11-21 22:36:09 PST
Comment on attachment 295326 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=295326&action=review > Source/WTF/ChangeLog:27 > + class and not repeat UAX16 in the names of the modes. Initial data members UAX14 > Source/WebCore/html/TextFieldInputType.cpp:389 > + auto firstBadCharacterIndex = string.find([] (UChar character) { Maybe if we knew why we’re doing this we’d use an adjective other than “bad” here.
Darin Adler
Comment 3 2016-11-22 09:16:15 PST
Darin Adler
Comment 4 2016-11-22 10:26:29 PST
Comment on attachment 295326 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=295326&action=review >> Source/WebCore/html/TextFieldInputType.cpp:389 >> + auto firstBadCharacterIndex = string.find([] (UChar character) { > > Maybe if we knew why we’re doing this we’d use an adjective other than “bad” here. I renamed to firstNonTabControlCharacterIndex.
Note You need to log in before you can comment on or make changes to this bug.