diff options
Diffstat (limited to 'webkit/port/platform/graphics')
-rw-r--r-- | webkit/port/platform/graphics/FontCacheWin.cpp | 5 | ||||
-rw-r--r-- | webkit/port/platform/graphics/mac/FontCacheMacPending.cpp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/webkit/port/platform/graphics/FontCacheWin.cpp b/webkit/port/platform/graphics/FontCacheWin.cpp index c9c8238..b6938a8 100644 --- a/webkit/port/platform/graphics/FontCacheWin.cpp +++ b/webkit/port/platform/graphics/FontCacheWin.cpp @@ -27,6 +27,7 @@ */ #include "config.h" +#include "ChromiumBridge.h" #include "FontCache.h" #include "Font.h" #include "HashSet.h" @@ -573,7 +574,7 @@ static LONG toGDIFontWeight(FontWeight fontWeight) // TODO in pending/FontCache.h. AtomicString FontCache::getGenericFontForScript(UScriptCode script, const FontDescription& description) { - if (webkit_glue::IsLayoutTestMode() && script == USCRIPT_LATIN) + if (ChromiumBridge::layoutTestMode() && script == USCRIPT_LATIN) return emptyAtom; FontDescription::GenericFamilyType generic = description.genericFamily(); const wchar_t* scriptFont = gfx::GetFontFamilyForScript( @@ -594,7 +595,7 @@ static void FillLogFont(const FontDescription& fontDescription, LOGFONT* winfont winfont->lfStrikeOut = false; winfont->lfCharSet = DEFAULT_CHARSET; winfont->lfOutPrecision = OUT_TT_ONLY_PRECIS; - winfont->lfQuality = webkit_glue::IsLayoutTestMode() ? NONANTIALIASED_QUALITY + winfont->lfQuality = ChromiumBridge::layoutTestMode() ? NONANTIALIASED_QUALITY : DEFAULT_QUALITY; // Honor user's desktop settings. winfont->lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE; winfont->lfItalic = fontDescription.italic(); diff --git a/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp b/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp index cdfe861..325b57d 100644 --- a/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp +++ b/webkit/port/platform/graphics/mac/FontCacheMacPending.cpp @@ -28,6 +28,7 @@ #include "config.h" #include "AtomicString.h" +#include "ChromiumBridge.h" #include "FontCache.h" #include "FontDescription.h" #include "webkit_glue.h" @@ -45,7 +46,7 @@ namespace WebCore { // TODO in pending/FontCache.h. AtomicString FontCache::getGenericFontForScript(UScriptCode script, const FontDescription& description) { - if (webkit_glue::IsLayoutTestMode()) + if (ChromiumBridge::layoutTestMode()) return emptyAtom; // TODO(pinkerton) -- flesh this out with some script handling code return emptyAtom; |