summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorjungshik@google.com <jungshik@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 02:31:05 +0000
committerjungshik@google.com <jungshik@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 02:31:05 +0000
commit1f77de7176ccb8b1c097019642249c6e35988d45 (patch)
tree9e567456096446afdbd1b0187959a65b145a8062 /webkit
parent8aa2ec735bcc0915f44c8d5996c1c1cbc0b90701 (diff)
downloadchromium_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.cpp2
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));