Make normal case fast in the input element limitString function
Created attachment 295326 [details] Patch
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.
Committed r208963: <http://trac.webkit.org/changeset/208963>
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.