Changeset 147525 in webkit


Ignore:
Timestamp:
Apr 3, 2013, 1:21:49 AM (12 years ago)
Author:
rniwa@webkit.org
Message:

Remove code for Mac 10.5 and earlier from WTF and WebKit2
https://bugs.webkit.org/show_bug.cgi?id=113844

Reviewed by Benjamin Poulain.

Removed the code for 10.5 and removed if-def for 10.6.

Source/WebKit2:

  • Shared/mac/PasteboardTypes.mm:

(WebKit::PasteboardTypes::forEditing):

Source/WTF:

  • wtf/FastMalloc.cpp:

(WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):

  • wtf/Platform.h:
  • wtf/ThreadingPthreads.cpp:

(WTF::initializeCurrentThreadInternal):

  • wtf/unicode/icu/CollatorICU.cpp:

(WTF::Collator::userDefault):

Location:
trunk/Source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r147502 r147525  
     12013-04-02  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Remove code for Mac 10.5 and earlier from WTF and WebKit2
     4        https://bugs.webkit.org/show_bug.cgi?id=113844
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Removed the code for 10.5 and removed if-def for 10.6.
     9
     10        * wtf/FastMalloc.cpp:
     11        (WTF::TCMalloc_ThreadCache::CreateCacheIfNecessary):
     12        * wtf/Platform.h:
     13        * wtf/ThreadingPthreads.cpp:
     14        (WTF::initializeCurrentThreadInternal):
     15        * wtf/unicode/icu/CollatorICU.cpp:
     16        (WTF::Collator::userDefault):
     17
    1182013-04-02  Max Vujovic  <mvujovic@adobe.com>
    219
  • trunk/Source/WTF/wtf/FastMalloc.cpp

    r146372 r147525  
    49664966malloc_introspection_t jscore_fastmalloc_introspection = { &FastMallocZone::enumerate, &FastMallocZone::goodSize, &FastMallocZone::check, &FastMallocZone::print,
    49674967    &FastMallocZone::log, &FastMallocZone::forceLock, &FastMallocZone::forceUnlock, &FastMallocZone::statistics
    4968 
    4969 #if OS(IOS) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
    49704968    , 0 // zone_locked will not be called on the zone unless it advertises itself as version five or higher.
    4971 #endif
    49724969#if OS(IOS) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
    49734970    , 0, 0, 0, 0 // These members will not be used unless the zone advertises itself as version seven or higher.
  • trunk/Source/WTF/wtf/Platform.h

    r147502 r147525  
    665665#if OS(DARWIN)
    666666
     667#define HAVE_DISPATCH_H 1
     668#define HAVE_MADV_FREE 1
    667669#define HAVE_MERGESORT 1
     670#define HAVE_PTHREAD_SETNAME_NP 1
    668671#define HAVE_SYS_TIMEB_H 1
    669672#define WTF_USE_ACCELERATE 1
    670 
    671 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
    672 
    673 #define HAVE_DISPATCH_H 1
    674 #define HAVE_MADV_FREE 1
    675 #define HAVE_PTHREAD_SETNAME_NP 1
    676673
    677674#if !PLATFORM(IOS)
     
    679676#define HAVE_MADV_FREE_REUSE 1
    680677#endif /* !PLATFORM(IOS) */
    681 
    682 #endif /* PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 */
    683678
    684679#endif /* OS(DARWIN) */
  • trunk/Source/WTF/wtf/ThreadingPthreads.cpp

    r135206 r147525  
    5757#endif
    5858
    59 #if OS(MAC_OS_X) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
     59#if OS(MAC_OS_X)
    6060#include <objc/objc-auto.h>
    6161#endif
     
    224224#endif
    225225
    226 #if OS(MAC_OS_X) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
     226#if OS(MAC_OS_X)
    227227    // All threads that potentially use APIs above the BSD layer must be registered with the Objective-C
    228228    // garbage collector in case API implementations use garbage-collected memory.
  • trunk/Source/WTF/wtf/unicode/icu/CollatorICU.cpp

    r139974 r147525  
    6363#if OS(DARWIN) && USE(CF)
    6464    // Mac OS X doesn't set UNIX locale to match user-selected one, so ICU default doesn't work.
    65 #if !OS(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
     65#if !OS(IOS)
    6666    RetainPtr<CFLocaleRef> currentLocale(AdoptCF, CFLocaleCopyCurrent());
    6767    CFStringRef collationOrder = (CFStringRef)CFLocaleGetValue(currentLocale.get(), kCFLocaleCollatorIdentifier);
  • trunk/Source/WebKit2/ChangeLog

    r147508 r147525  
     12013-04-02  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Remove code for Mac 10.5 and earlier from WTF and WebKit2
     4        https://bugs.webkit.org/show_bug.cgi?id=113844
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Removed the code for 10.5 and removed if-def for 10.6.
     9
     10        * Shared/mac/PasteboardTypes.mm:
     11        (WebKit::PasteboardTypes::forEditing):
     12
    1132013-04-02  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WebKit2/Shared/mac/PasteboardTypes.mm

    r122400 r147525  
    4545{
    4646    static NSArray *types = retain([NSArray arrayWithObjects:WebArchivePboardType, NSHTMLPboardType, NSFilenamesPboardType, NSTIFFPboardType, NSPDFPboardType,
    47 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050
    48         NSPICTPboardType,
    49 #endif
    5047        NSURLPboardType, NSRTFDPboardType, NSRTFPboardType, NSStringPboardType, NSColorPboardType, kUTTypePNG, nil]);
    5148    return types;
Note: See TracChangeset for help on using the changeset viewer.