Changeset 24332 in webkit
- Timestamp:
- Jul 16, 2007, 3:09:05 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r24331 r24332 53 53 ditto. We already had checks to prevent drawing the text that considered the option's style too, but if visibility: hidden 54 54 was just set on the listbox then a lot of extra work was being done, and the scrollbar was drawing too. This change fixes that. 55 56 2007-07-16 David Hyatt <hyatt@apple.com> 57 58 Fix for 5335829, avoid creating a pathological # of FontData objects 59 on Windows. The MLang service actually caches and reuses HFONTs, which 60 means it is safe to use our FontPlatformData -> FontData cache. 61 62 Reviewed by olliej 63 64 * platform/win/FontCacheWin.cpp: 65 (WebCore::FontCache::getFontDataForCharacters): 55 66 56 67 2007-07-16 David Hyatt <hyatt@apple.com> -
trunk/WebCore/platform/win/FontCacheWin.cpp
r23539 r24332 85 85 HFONT result; 86 86 if (langFontLink->MapFont(hdc, actualCodePages, characters[0], &result) == S_OK) { 87 fontData = new FontData(FontPlatformData(result, font.fontDescription().computedPixelSize(), font.fontDescription().bold(), font.fontDescription().italic())); 87 // MLang has an internal cache, which means it really will hand back the same HFONT pointer if it can. We can 88 // therefore safely use our hash on HFONT pointers (FontPlatformData -> FontData) and actually expect it to work. 89 FontPlatformData platformData(result, font.fontDescription().computedPixelSize(), font.fontDescription().bold(), font.fontDescription().italic()); 90 fontData = getCachedFontData(&platformData); 88 91 fontData->setIsMLangFont(); 89 92 }
Note:
See TracChangeset
for help on using the changeset viewer.