Summary: | Support setLangAttributeAwareFormControlUIEnabled on Chromium Windows XP | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> | ||||
Component: | Platform | Assignee: | Kent Tamura <tkent> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | haraken, morrita | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Kent Tamura
2013-02-03 22:14:00 PST
Created attachment 186307 [details]
Patch
Comment on attachment 186307 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186307&action=review > Source/WebCore/platform/text/win/LocaleWin.cpp:71 > +static void initializeNameToLCIDMapIfEmpty(NameToLCIDMap& map) ensureNameToLCIDMap() ? (I'm not sure of naming convention around here though.) > Source/WebCore/platform/text/win/LocaleWin.cpp:108 > + if (!name || !name[0]) Is it safe to access name[0] without checking name.length ? > Source/WebCore/platform/text/win/LocaleWin.cpp:136 > - return LOCALE_USER_DEFAULT; > + localeNameToLCID = convertLocaleNameToLCID; Is it OK to fall through the code when localeNameToLCID is LOCALE_USER_DEFAULT ? Comment on attachment 186307 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186307&action=review >> Source/WebCore/platform/text/win/LocaleWin.cpp:108 >> + if (!name || !name[0]) > > Is it safe to access name[0] without checking name.length ? Yes, it is. We have no ways to check length of 'name' because it is null-terminated string. >> Source/WebCore/platform/text/win/LocaleWin.cpp:136 >> + localeNameToLCID = convertLocaleNameToLCID; > > Is it OK to fall through the code when localeNameToLCID is LOCALE_USER_DEFAULT ? Yes. localeNameToLCID is a function pointer, and convertLocaleNameToLCID and LocaleNameToLCID are compatible. Comment on attachment 186307 [details]
Patch
thanks for clarification!
Committed r141741: <http://trac.webkit.org/changeset/141741> |