From 9641c9f6f540691191be211b1f1b3f1c40ea9699 Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Tue, 7 Oct 2008 17:17:51 +0000 Subject: The current code over-creates SimpleFontData wrappers; it should pull them from the cache. Review URL: http://codereview.chromium.org/6308 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2944 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/platform/graphics/FontCacheWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webkit/port/platform/graphics/FontCacheWin.cpp b/webkit/port/platform/graphics/FontCacheWin.cpp index e4b2c65..afb7b93 100644 --- a/webkit/port/platform/graphics/FontCacheWin.cpp +++ b/webkit/port/platform/graphics/FontCacheWin.cpp @@ -433,7 +433,7 @@ const SimpleFontData* FontCache::getFontDataForCharacters(const Font& font, AtomicString(family, wcslen(family))); } if (i < numFonts) // we found the font that covers this character ! - return new SimpleFontData(*data); + return getCachedFontData(data); // IMLangFontLink can break up a string into regions that can be rendered // using one particular font. -- cgit v1.1