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

Unified Diff: Source/core/platform/graphics/AlternateFontFamily.h

Issue 48523009: Fix unused functions warnings on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: Source/core/platform/graphics/AlternateFontFamily.h
diff --git a/Source/core/platform/graphics/AlternateFontFamily.h b/Source/core/platform/graphics/AlternateFontFamily.h
index 9a735c2370cb19db71ea7cdf35a28a8775bfc725..d7c169870ed720083ed47361bf5e1ba00a2e24ce 100644
--- a/Source/core/platform/graphics/AlternateFontFamily.h
+++ b/Source/core/platform/graphics/AlternateFontFamily.h
@@ -40,7 +40,7 @@ namespace WebCore {
// Instead of trying to construct a bitmap font and then going down the fallback path map
// certain common bitmap fonts to their truetype equivalent up front. This also allows the
// GDI_FONTS_ON_WINDOWS disabled code path to match our current behavior.
-static const AtomicString& alternateFamilyNameAvoidingBitmapFonts(const AtomicString& familyName)
+inline const AtomicString& alternateFamilyNameAvoidingBitmapFonts(const AtomicString& familyName)
{
#if OS(WIN)
// On Windows, 'Courier New' (truetype font) is always present and
@@ -70,7 +70,7 @@ static const AtomicString& alternateFamilyNameAvoidingBitmapFonts(const AtomicSt
return emptyAtom;
}
-static const AtomicString& alternateFamilyName(const AtomicString& familyName)
+inline const AtomicString& alternateFamilyName(const AtomicString& familyName)
{
// Alias Courier <-> Courier New
DEFINE_STATIC_LOCAL(AtomicString, courier, ("Courier", AtomicString::ConstructFromLiteral));
@@ -105,7 +105,7 @@ static const AtomicString& alternateFamilyName(const AtomicString& familyName)
}
-static const AtomicString getFallbackFontFamily(const FontDescription& description)
+inline const AtomicString getFallbackFontFamily(const FontDescription& description)
{
DEFINE_STATIC_LOCAL(const AtomicString, sansStr, ("Sans", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(const AtomicString, serifStr, ("Serif", AtomicString::ConstructFromLiteral));

Powered by Google App Engine
This is Rietveld 408576698