Changeset 130062 in webkit
- Timestamp:
- Oct 1, 2012, 12:07:57 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130061 r130062 1 2012-10-01 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] ASSERT that the embedder has set a default locale 4 https://bugs.webkit.org/show_bug.cgi?id=98001 5 6 Reviewed by Adam Barth. 7 8 The callsites assume that the default language is always defined, e.g. 9 Document::getCachedLocalizer. Add an ASSERT() statement so an embedder 10 doesn't have to guess what they did wrong. 11 12 * platform/chromium/LanguageChromium.cpp: 13 (WebCore::platformLanguage): 14 1 15 2012-10-01 Christophe Dumez <christophe.dumez@intel.com> 2 16 -
trunk/Source/WebCore/platform/chromium/LanguageChromium.cpp
r127757 r130062 41 41 { 42 42 DEFINE_STATIC_LOCAL(String, computedDefaultLanguage, ()); 43 if (computedDefaultLanguage.isEmpty()) 43 if (computedDefaultLanguage.isEmpty()) { 44 44 computedDefaultLanguage.append(WebKit::Platform::current()->defaultLocale()); 45 ASSERT(!computedDefaultLanguage.isEmpty()); 46 } 45 47 return computedDefaultLanguage; 46 48 }
Note:
See TracChangeset
for help on using the changeset viewer.