Changeset 167715 in webkit
- Timestamp:
- Apr 23, 2014 11:36:26 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167714 r167715 1 2014-04-23 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r167713. 4 https://bugs.webkit.org/show_bug.cgi?id=132070 5 6 broke hundreds of tests (Requested by thorton on #webkit). 7 8 Reverted changeset: 9 10 "[OS X] Make checking if a font is the system font more 11 robust" 12 https://bugs.webkit.org/show_bug.cgi?id=132030 13 http://trac.webkit.org/changeset/167713 14 1 15 2014-04-22 David Hyatt <hyatt@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/Font.cpp
r167713 r167715 482 482 return false; 483 483 484 #if PLATFORM(MAC) || PLATFORM(IOS) 485 // Internal fonts on OS X and iOS also have an invalid entry in the table for avgCharWidth.486 if (primaryFontDataIsSystemFont())487 return false;488 #endif 484 // Internal fonts on OS X also have an invalid entry in the table for avgCharWidth. 485 // They are hidden by having a name that begins with a period, so simply search 486 // for that here rather than try to keep the list up to date. 487 if (family.startsWith('.')) 488 return false; 489 489 490 490 static HashSet<AtomicString>* fontFamiliesWithInvalidCharWidthMap = 0; -
trunk/Source/WebCore/platform/graphics/Font.h
r167713 r167715 189 189 static CodePath characterRangeCodePath(const LChar*, unsigned) { return Simple; } 190 190 static CodePath characterRangeCodePath(const UChar*, unsigned len); 191 192 bool primaryFontDataIsSystemFont() const;193 191 194 192 private: -
trunk/Source/WebCore/platform/graphics/mac/FontMac.mm
r167713 r167715 35 35 #import <wtf/MathExtras.h> 36 36 37 #if __has_include(<CoreText/CTFontDescriptorPriv.h>)38 #import <CoreText/CTFontDescriptorPriv.h>39 #endif40 extern "C" bool CTFontDescriptorIsSystemUIFont(CTFontDescriptorRef);41 42 37 #if ENABLE(LETTERPRESS) 43 38 #import "SoftLinking.h" … … 541 536 #endif 542 537 543 bool Font::primaryFontDataIsSystemFont() const 544 { 545 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 546 RetainPtr<CTFontDescriptorRef> descriptor = CTFontCopyFontDescriptor(primaryFont()->platformData().ctFont()); 547 return CTFontDescriptorIsSystemUIFont(descriptor.get()); 548 #else 549 return false; 550 #endif 551 } 552 553 } 538 }
Note: See TracChangeset
for help on using the changeset viewer.