diff options
Diffstat (limited to 'WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp')
-rw-r--r-- | WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp b/WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp index 129776e..bf1cd2e 100644 --- a/WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp +++ b/WebCore/platform/graphics/chromium/FontCacheChromiumWin.cpp @@ -414,14 +414,6 @@ FontPlatformData* FontCache::getSimilarFontPlatformData(const Font& font) FontPlatformData* FontCache::getLastResortFallbackFont(const FontDescription& description) { FontDescription::GenericFamilyType generic = description.genericFamily(); - // FIXME: Mapping webkit generic to GenericFamilyType needs to - // be more intelligent. - // This spot rarely gets reached. GetFontDataForCharacters() gets hit a lot - // more often (see FIXME comment there). - const wchar_t* family = getFontFamilyForScript(description.dominantScript(), generic); - - if (family) - return getCachedFontPlatformData(description, AtomicString(family, wcslen(family))); // FIXME: Would be even better to somehow get the user's default font here. // For now we'll pick the default that the user would get without changing @@ -455,13 +447,6 @@ static LONG toGDIFontWeight(FontWeight fontWeight) return gdiFontWeights[fontWeight]; } -// FIXME: This may not be the best place to put this function -AtomicString FontCache::getGenericFontForScript(UScriptCode script, const FontDescription& description) -{ - const wchar_t* scriptFont = getFontFamilyForScript( script, description.genericFamily()); - return scriptFont ? AtomicString(scriptFont, wcslen(scriptFont)) : emptyAtom; -} - static void FillLogFont(const FontDescription& fontDescription, LOGFONT* winfont) { // The size here looks unusual. The negative number is intentional. |