Changeset 167715 in webkit


Ignore:
Timestamp:
Apr 23, 2014 11:36:26 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r167713.
https://bugs.webkit.org/show_bug.cgi?id=132070

broke hundreds of tests (Requested by thorton on #webkit).

Reverted changeset:

"[OS X] Make checking if a font is the system font more
robust"
https://bugs.webkit.org/show_bug.cgi?id=132030
http://trac.webkit.org/changeset/167713

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167714 r167715  
     12014-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
    1152014-04-22  David Hyatt  <hyatt@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/Font.cpp

    r167713 r167715  
    482482        return false;
    483483
    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;
    489489
    490490    static HashSet<AtomicString>* fontFamiliesWithInvalidCharWidthMap = 0;
  • trunk/Source/WebCore/platform/graphics/Font.h

    r167713 r167715  
    189189    static CodePath characterRangeCodePath(const LChar*, unsigned) { return Simple; }
    190190    static CodePath characterRangeCodePath(const UChar*, unsigned len);
    191    
    192     bool primaryFontDataIsSystemFont() const;
    193191
    194192private:
  • trunk/Source/WebCore/platform/graphics/mac/FontMac.mm

    r167713 r167715  
    3535#import <wtf/MathExtras.h>
    3636
    37 #if __has_include(<CoreText/CTFontDescriptorPriv.h>)
    38 #import <CoreText/CTFontDescriptorPriv.h>
    39 #endif
    40 extern "C" bool CTFontDescriptorIsSystemUIFont(CTFontDescriptorRef);
    41 
    4237#if ENABLE(LETTERPRESS)
    4338#import "SoftLinking.h"
     
    541536#endif
    542537
    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.