-
hyatt authored
new FontCache. Reviewed by andersca * WebCore.xcodeproj/project.pbxproj: * bridge/mac/WebCoreStringTruncator.mm: * kwq/KWQComboBox.mm: * kwq/KWQLineEdit.mm: * kwq/KWQListBox.mm: * platform/Font.h: (WebCore::Font::bold): * platform/FontCache.cpp: Added. (WebCore::FontPlatformDataCacheKey::m_italic): (WebCore::FontPlatformDataCacheKey::operator==): (WebCore::computeHash): (WebCore::FontPlatformDataCacheKeyHash::hash): (WebCore::FontPlatformDataCacheKeyHash::equal): (WebCore::FontPlatformDataCacheKeyTraits::deletedValue): (WebCore::FontCache::getCachedFontPlatformData): (WebCore::FontDataCacheKeyHash::hash): (WebCore::FontDataCacheKeyHash::equal): (WebCore::FontDataCacheKeyTraits::deletedValue): (WebCore::FontCache::getCachedFontData): (WebCore::FontCache::getFontData): (WebCore::FontCache::clearCommonCaches): * platform/FontCache.h: * platform/FontData.h: * platform/FontFamily.cpp: (WebCore::FontFamily::FontFamily): (WebCore::FontFamily::operator=): (WebCore::FontFamily::setFamily): * platform/FontFamily.h: (WebCore::FontFamily::familyIsEmpty): * platform/FontPlatformData.h: (WebCore::FontPlatformData::hash): (WebCore::FontPlatformData::operator==): * platform/mac/FontCacheMac.mm: (WebCore::getAppDefaultValue): (WebCore::getUserDefaultValue): (WebCore::getLCDScaleParameters): (WebCore::fontsChanged): (WebCore::FontCache::registerForFontChanges): (WebCore::FontCache::clearCaches): (WebCore::FontCache::getFontDataForCharacters): (WebCore::FontCache::getSimilarFontPlatformData): (WebCore::FontCache::getLastResortFallbackFont): (WebCore::FontCache::createFontPlatformData): * platform/mac/FontData.mm: (-[NSFont WebCore]): (WidthMap::FontData::xHeight): (WidthMap::FontData::smallCapsFontData): (WidthMap::computeWidthForSpace): (WidthMap::setUpFont): (WidthMap::fillStyleWithAttributes): (WidthMap::FontData::determinePitch): * platform/mac/FontFallbackListMac.mm: (WebCore::FontFallbackList::setPlatformFont): * platform/mac/FontFamilyMac.mm: Removed. * platform/mac/FontMac.mm: * platform/mac/WebCoreTextRenderer.mm: (WebCoreFindFont): * platform/mac/WebFontCache.h: Added. * platform/mac/WebFontCache.mm: Added. (acceptableChoice): (betterChoice): (+[WebFontCache fontWithFamily:traits:size:]): * platform/mac/WebTextRendererFactory.h: Removed. * platform/mac/WebTextRendererFactory.mm: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3aa3c4ca