diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-07 17:17:51 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-07 17:17:51 +0000 |
commit | 9641c9f6f540691191be211b1f1b3f1c40ea9699 (patch) | |
tree | 22233faa5262feb888f994a4a745dbb53c7e5d0a | |
parent | 01302da0fdaa58f16d470bd5be63e0060f3abbd2 (diff) | |
download | chromium_src-9641c9f6f540691191be211b1f1b3f1c40ea9699.zip chromium_src-9641c9f6f540691191be211b1f1b3f1c40ea9699.tar.gz chromium_src-9641c9f6f540691191be211b1f1b3f1c40ea9699.tar.bz2 |
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
-rw-r--r-- | webkit/port/platform/graphics/FontCacheWin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |