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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeFontProvider.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/core/layout/LayoutThemeFontProvider.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeFontProvider.cpp b/third_party/WebKit/Source/core/layout/LayoutThemeFontProvider.cpp
index 431743e75144dd30c7b465f838d3de7e2de2c572..3aa46462979d9f2f28b57b7e15ed2e63407921fc 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeFontProvider.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeFontProvider.cpp
@@ -47,7 +47,7 @@ float LayoutThemeFontProvider::s_defaultFontSize = 16.0;
// sizes (e.g. 15px). So, for now we just use Arial.
const AtomicString& LayoutThemeFontProvider::defaultGUIFont()
{
- DEFINE_STATIC_LOCAL(const AtomicString, fontFace, ("Arial", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, fontFace, ("Arial"));
return fontFace;
}

Powered by Google App Engine
This is Rietveld 408576698