Changeset 147702 in webkit
- Timestamp:
- Apr 4, 2013 9:39:58 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147694 r147702 1 2013-04-04 Benjamin Poulain <bpoulain@apple.com> 2 3 alternateFamilyName should return a null, not an empty value 4 https://bugs.webkit.org/show_bug.cgi?id=113987 5 6 Reviewed by Anders Carlsson. 7 8 The string object corresponding semantically to "no-value" is 9 a null string, not an empty string. 10 11 Fix alternateFamilyName() accordingly. 12 13 * platform/graphics/FontCache.cpp: 14 (WebCore::alternateFamilyName): 15 (WebCore::FontCache::getCachedFontPlatformData): 16 1 17 2013-04-04 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/FontCache.cpp
r147689 r147702 179 179 #endif 180 180 181 return emptyAtom;181 return nullAtom; 182 182 } 183 183 … … 214 214 // e.g., Arial/Helvetica, Courier/Courier New, etc. Try looking up the font under the aliased name. 215 215 const AtomicString& alternateName = alternateFamilyName(familyName); 216 if (!alternateName.is Empty()) {216 if (!alternateName.isNull()) { 217 217 FontPlatformData* fontPlatformDataForAlternateName = getCachedFontPlatformData(fontDescription, alternateName, true); 218 218 // Lookup the key in the hash table again as the previous iterator may have
Note: See TracChangeset
for help on using the changeset viewer.