Changeset 256008 in webkit


Ignore:
Timestamp:
Feb 6, 2020 9:19:16 PM (4 years ago)
Author:
mmaxfield@apple.com
Message:

REGRESSION(r254534): 1-3% regression on PLT
https://bugs.webkit.org/show_bug.cgi?id=207244

Can't put null strings into hash maps.

Reviewed by Wenson Hsieh.

  • platform/text/cocoa/LocaleCocoa.mm:

(WebCore::LocaleCocoa::canonicalLanguageIdentifierFromString):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r256007 r256008  
     12020-02-06  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        REGRESSION(r254534): 1-3% regression on PLT
     4        https://bugs.webkit.org/show_bug.cgi?id=207244
     5
     6        Can't put null strings into hash maps.
     7
     8        Reviewed by Wenson Hsieh.
     9
     10        * platform/text/cocoa/LocaleCocoa.mm:
     11        (WebCore::LocaleCocoa::canonicalLanguageIdentifierFromString):
     12
    1132020-02-06  Myles C. Maxfield  <mmaxfield@apple.com>
    214
  • trunk/Source/WebCore/platform/text/cocoa/LocaleCocoa.mm

    r256007 r256008  
    289289AtomString LocaleCocoa::canonicalLanguageIdentifierFromString(const AtomString& string)
    290290{
     291    if (string.isEmpty())
     292        return string;
    291293    return canonicalLocaleMap().ensure(string, [&] {
    292294        return [NSLocale canonicalLanguageIdentifierFromString:string];
Note: See TracChangeset for help on using the changeset viewer.