diff options
author | jungshik@google.com <jungshik@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-08 02:31:05 +0000 |
---|---|---|
committer | jungshik@google.com <jungshik@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-08 02:31:05 +0000 |
commit | 1f77de7176ccb8b1c097019642249c6e35988d45 (patch) | |
tree | 9e567456096446afdbd1b0187959a65b145a8062 /webkit | |
parent | 8aa2ec735bcc0915f44c8d5996c1c1cbc0b90701 (diff) | |
download | chromium_src-1f77de7176ccb8b1c097019642249c6e35988d45.zip chromium_src-1f77de7176ccb8b1c097019642249c6e35988d45.tar.gz chromium_src-1f77de7176ccb8b1c097019642249c6e35988d45.tar.bz2 |
Fix massive layout test failure (arising from Times vs Times New Roman difference)
TBR=brettw
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/port/platform/graphics/FontCacheWin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/port/platform/graphics/FontCacheWin.cpp b/webkit/port/platform/graphics/FontCacheWin.cpp index d3f2daa..8a4a5a2 100644 --- a/webkit/port/platform/graphics/FontCacheWin.cpp +++ b/webkit/port/platform/graphics/FontCacheWin.cpp @@ -534,6 +534,8 @@ FontPlatformData* FontCache::getLastResortFallbackFont( // TODO in pending/FontCache.h. AtomicString FontCache::getGenericFontForScript(UScriptCode script, const FontDescription& description) { + if (webkit_glue::IsLayoutTestMode() && script == USCRIPT_LATIN) + return emptyAtom; FontDescription::GenericFamilyType generic = description.genericFamily(); const wchar_t* scriptFont = gfx::GetFontFamilyForScript( script, static_cast<gfx::GenericFamilyType>(generic)); |