Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Unified Diff: WebCore/platform/graphics/opentype/OpenTypeUtilities.cpp

Issue 464014: Merge 51605 - 20091202 Yusuke Sato <yusukes@chromium.org>... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/249/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/platform/graphics/opentype/OpenTypeUtilities.cpp
===================================================================
--- WebCore/platform/graphics/opentype/OpenTypeUtilities.cpp (revision 33661)
+++ WebCore/platform/graphics/opentype/OpenTypeUtilities.cpp (working copy)
@@ -435,7 +435,7 @@
DWORD numFonts = 0;
HANDLE fontHandle = AddFontMemResourceEx(rewrittenFontData.data(), fontData->size() + nameTableSize, 0, &numFonts);
- if (fontHandle && numFonts != 1) {
+ if (fontHandle && numFonts < 1) {
RemoveFontMemResourceEx(fontHandle);
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698