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

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: Fix DragController 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
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/rendering/RenderEmbeddedObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/AlternateFontFamily.h
diff --git a/Source/core/platform/graphics/AlternateFontFamily.h b/Source/core/platform/graphics/AlternateFontFamily.h
index d34f2be0e26379c1e50df6fef49c7845cc0d70c0..02aea9ec2e94940ec381f2a27ea1576198f1b2da 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));
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/rendering/RenderEmbeddedObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698