Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp

Issue 1844223002: Literal AtomicString construction can rely on strlen optimization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp
diff --git a/third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp b/third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp
index 81dba58f3b8997fba5a7edeeb599182da04efb69..ea0c0b7fa828cb132c290f60c535b330b6b98f89 100644
--- a/third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp
+++ b/third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp
@@ -232,7 +232,7 @@ public:
WebFallbackFont fallbackFontForCharInLocale(WebUChar32 c, const char* locale)
{
- DEFINE_STATIC_LOCAL(AtomicString, noLocale, ("NO_LOCALE_SPECIFIED", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, noLocale, ("NO_LOCALE_SPECIFIED"));
AtomicString localeKey;
if (locale && strlen(locale)) {
localeKey = AtomicString(locale);

Powered by Google App Engine
This is Rietveld 408576698