Changeset 179364 in webkit
- Timestamp:
- Jan 29, 2015 1:57:04 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r179362 r179364 1 2015-01-28 Beth Dakin <bdakin@apple.com> 2 3 Remove more Mountain Lion code from WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=141014 5 6 Reviewed by Anders Carlsson. 7 8 * WebCore.exp.in: 9 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: 10 (AXAttributeStringSetSpelling): 11 (AXAttributedStringAppendText): 12 * crypto/CommonCryptoUtilities.h: 13 * crypto/mac/CryptoAlgorithmAES_CBCMac.cpp: 14 (WebCore::transformAES_CBC): 15 * editing/cocoa/HTMLConverter.mm: 16 (_dateForString): 17 * html/canvas/ANGLEInstancedArrays.cpp: 18 (WebCore::ANGLEInstancedArrays::supported): 19 * loader/cocoa/DiskCacheMonitorCocoa.mm: 20 * page/mac/SettingsMac.mm: 21 (WebCore::Settings::shouldEnableScreenFontSubstitutionByDefault): 22 (WebCore::Settings::initializeDefaultFontFamilies): 23 * platform/audio/mac/MediaSessionManagerMac.cpp: 24 (MediaSessionManager::updateSessionState): 25 * platform/cocoa/MemoryPressureHandlerCocoa.mm: 26 (WebCore::MemoryPressureHandler::install): 27 (WebCore::MemoryPressureHandler::ReliefLogger::platformLog): 28 (WebCore::MemoryPressureHandler::ReliefLogger::platformMemoryUsage): Deleted. 29 * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm: 30 (WebCore::AVTrackPrivateAVFObjCImpl::languageForAVMediaSelectionOption): 31 * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h: 32 * platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm: 33 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 34 (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer): 35 (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): 36 * platform/graphics/cocoa/IOSurface.mm: 37 (IOSurface::state): 38 (IOSurface::isVolatile): 39 (IOSurface::setIsVolatile): 40 * platform/graphics/mac/SimpleFontDataMac.mm: 41 (WebCore::Font::platformInit): 42 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 43 (WebCore::Extensions3DOpenGL::drawArraysInstanced): 44 (WebCore::Extensions3DOpenGL::drawElementsInstanced): 45 (WebCore::Extensions3DOpenGL::vertexAttribDivisor): 46 * platform/mac/WebCoreSystemInterface.h: 47 * platform/mac/WebCoreSystemInterface.mm: 48 * platform/network/cf/ResourceHandleCFNet.cpp: 49 (WebCore::ResourceHandle::createCFURLConnection): 50 * platform/network/cocoa/ProtectionSpaceCocoa.h: 51 (WebCore::ProtectionSpace::encodingRequiresPlatformData): 52 * platform/network/cocoa/ProtectionSpaceCocoa.mm: 53 (WebCore::ProtectionSpace::encodingRequiresPlatformData): 54 * platform/network/mac/ResourceHandleMac.mm: 55 (WebCore::ResourceHandle::createNSURLConnection): 56 * platform/network/mac/WebCoreURLResponse.mm: 57 (WebCore::synthesizeRedirectResponseIfNecessary): 58 * platform/spi/cf/CFNetworkSPI.h: 59 * platform/text/mac/LocaleMac.mm: 60 (WebCore::LocaleMac::LocaleMac): 61 1 62 2015-01-29 Benjamin Poulain <bpoulain@apple.com> 2 63 -
trunk/Source/WebCore/WebCore.exp.in
r179347 r179364 636 636 __ZN7WebCore15PlatformCALayerC2ENS0_9LayerTypeEPNS_21PlatformCALayerClientE 637 637 __ZN7WebCore15PlatformCALayerD2Ev 638 __ZN7WebCore15ProtectionSpace28encodingRequiresPlatformDataEP20NSURLProtectionSpace 638 639 __ZN7WebCore15ProtectionSpaceC1EP20NSURLProtectionSpace 639 640 __ZN7WebCore15ResourceRequest21httpPipeliningEnabledEv … … 700 701 __ZN7WebCore16DeviceMotionData12RotationRate6createEbdbdbd 701 702 __ZN7WebCore16DeviceMotionData6createEN3WTF10PassRefPtrINS0_12AccelerationEEES4_NS2_INS0_12RotationRateEEEbd 703 __ZN7WebCore16DiskCacheMonitorC2ERKNS_15ResourceRequestENS_9SessionIDEPK20_CFCachedURLResponse 702 704 __ZN7WebCore16FilterOperationsC1Ev 703 705 __ZN7WebCore16FilterOperationsaSERKS0_ … … 1067 1069 __ZN7WebCore23getHostnamesWithCookiesERKNS_21NetworkStorageSessionERN3WTF7HashSetINS3_6StringENS3_10StringHashENS3_10HashTraitsIS5_EEEE 1068 1070 __ZN7WebCore23toCAMediaTimingFunctionEPKNS_14TimingFunctionEb 1071 __ZN7WebCore23wrapSerializedCryptoKeyERKN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEES5_RS3_ 1069 1072 __ZN7WebCore24CachedResourceHandleBase11setResourceEPNS_14CachedResourceE 1070 1073 __ZN7WebCore24DocumentMarkerController10markersForEPNS_4NodeENS_14DocumentMarker11MarkerTypesE … … 1094 1097 __ZN7WebCore25directionOfEnclosingBlockERKNS_8PositionE 1095 1098 __ZN7WebCore25getOutOfLineCachedWrapperEPNS_17JSDOMGlobalObjectEPNS_4NodeE 1099 __ZN7WebCore25unwrapSerializedCryptoKeyERKN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEES5_RS3_ 1096 1100 __ZN7WebCore25updateRedirectChainStatusERNS_24RedirectChainCacheStatusERKNS_16ResourceResponseE 1097 1101 __ZN7WebCore26ContextDestructionObserver16contextDestroyedEv … … 1149 1153 __ZN7WebCore28UserMessageHandlerDescriptorD1Ev 1150 1154 __ZN7WebCore28encodeWithURLEscapeSequencesERKN3WTF6StringE 1155 __ZN7WebCore28getDefaultWebCryptoMasterKeyERN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEE 1151 1156 __ZN7WebCore28removeLanguageChangeObserverEPv 1152 1157 __ZN7WebCore28throwArgumentMustBeEnumErrorERN3JSC9ExecStateEjPKcS4_S4_S4_ … … 2179 2184 __ZTVN7WebCore16BlobRegistryImplE 2180 2185 __ZTVN7WebCore16DatabaseProviderE 2186 __ZTVN7WebCore16DiskCacheMonitorE 2181 2187 __ZTVN7WebCore16IconDatabaseBaseE 2182 2188 __ZTVN7WebCore17FrameLoaderClientE … … 2505 2511 _wkCreateMediaUIBackgroundView 2506 2512 _wkCreateMediaUIControl 2513 _wkCreateMemoryStatusPressureCriticalDispatchOnMainQueue 2507 2514 _wkCreateURLNPasteboardFlavorTypeName 2508 2515 _wkCreateURLPasteboardFlavorTypeName … … 2567 2574 __ZN7WebCore32shouldRegisterInsertionUndoGroupEP18NSAttributedString 2568 2575 __ZN7WebCore44registerInsertionUndoGroupingWithUndoManagerEP13NSUndoManager 2569 #endif2570 2571 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 10902572 _wkCreateMemoryStatusPressureCriticalDispatchOnMainQueue2573 2576 #endif 2574 2577 … … 2929 2932 #endif 2930 2933 2931 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 10902932 __ZN7WebCore15ProtectionSpace28encodingRequiresPlatformDataEP20NSURLProtectionSpace2933 __ZN7WebCore16DiskCacheMonitorC2ERKNS_15ResourceRequestENS_9SessionIDEPK20_CFCachedURLResponse2934 __ZN7WebCore23wrapSerializedCryptoKeyERKN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEES5_RS3_2935 __ZN7WebCore25unwrapSerializedCryptoKeyERKN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEES5_RS3_2936 __ZN7WebCore28getDefaultWebCryptoMasterKeyERN3WTF6VectorIhLm0ENS0_15CrashOnOverflowEEE2937 __ZTVN7WebCore16DiskCacheMonitorE2938 #endif2939 2940 2934 #if ENABLE(3D_RENDERING) 2941 2935 _WebCoreHas3DRendering -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
r179228 r179364 935 935 const TextCheckingResult& result = results[i]; 936 936 AXAttributeStringSetNumber(attrString, NSAccessibilityMisspelledTextAttribute, trueValue, NSMakeRange(result.location + range.location, result.length)); 937 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090937 #if PLATFORM(MAC) 938 938 AXAttributeStringSetNumber(attrString, NSAccessibilityMarkedMisspelledTextAttribute, trueValue, NSMakeRange(result.location + range.location, result.length)); 939 939 #endif … … 951 951 NSRange spellRange = NSMakeRange(range.location + currentPosition + misspellingLocation, misspellingLength); 952 952 AXAttributeStringSetNumber(attrString, NSAccessibilityMisspelledTextAttribute, [NSNumber numberWithBool:YES], spellRange); 953 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090953 #if PLATFORM(MAC) 954 954 AXAttributeStringSetNumber(attrString, NSAccessibilityMarkedMisspelledTextAttribute, [NSNumber numberWithBool:YES], spellRange); 955 955 #endif … … 1039 1039 // remove inherited attachment from prior AXAttributedStringAppendReplaced 1040 1040 [attrString removeAttribute:NSAccessibilityAttachmentTextAttribute range:attrStringRange]; 1041 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 10901041 #if PLATFORM(MAC) 1042 1042 [attrString removeAttribute:NSAccessibilityMarkedMisspelledTextAttribute range:attrStringRange]; 1043 1043 #endif -
trunk/Source/WebCore/crypto/CommonCryptoUtilities.h
r163976 r179364 39 39 #endif 40 40 41 #if defined(__has_include) && (PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)41 #if defined(__has_include) && PLATFORM(COCOA) 42 42 #if __has_include(<CommonCrypto/CommonRandomSPI.h>) 43 43 #include <CommonCrypto/CommonRandomSPI.h> -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
r170774 r179364 47 47 48 48 CCCryptorRef cryptor; 49 #if PLATFORM( IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109049 #if PLATFORM(COCOA) 50 50 CCAlgorithm aesAlgorithm = kCCAlgorithmAES; 51 51 #else -
trunk/Source/WebCore/editing/cocoa/HTMLConverter.mm
r179143 r179364 1723 1723 [dateComponents setSecond:component]; 1724 1724 1725 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090) 1726 NSString *calendarIdentifier = NSCalendarIdentifierGregorian; 1727 #else 1728 NSString *calendarIdentifier = NSGregorianCalendar; 1729 #endif 1730 1731 return [[[[NSCalendar alloc] initWithCalendarIdentifier:calendarIdentifier] autorelease] dateFromComponents:dateComponents.get()]; 1725 return [[[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian] autorelease] dateFromComponents:dateComponents.get()]; 1732 1726 } 1733 1727 -
trunk/Source/WebCore/html/canvas/ANGLEInstancedArrays.cpp
r178674 r179364 51 51 bool ANGLEInstancedArrays::supported(WebGLRenderingContextBase* context) 52 52 { 53 #if PLATFORM( IOS) || PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 109053 #if PLATFORM(COCOA) 54 54 UNUSED_PARAM(context); 55 55 return true; -
trunk/Source/WebCore/loader/cocoa/DiskCacheMonitorCocoa.mm
r176450 r179364 41 41 #include "WebCoreThreadRun.h" 42 42 #endif 43 44 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)45 43 46 44 namespace WebCore { … … 124 122 125 123 } // namespace WebCore 126 127 #endif // (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090) -
trunk/Source/WebCore/page/mac/SettingsMac.mm
r179283 r179364 31 31 bool Settings::shouldEnableScreenFontSubstitutionByDefault() 32 32 { 33 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 109033 #if PLATFORM(MAC) 34 34 return false; 35 35 #else … … 41 41 { 42 42 #if !PLATFORM(IOS) 43 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 109044 43 setStandardFontFamily("Songti TC", USCRIPT_TRADITIONAL_HAN); 45 44 setSerifFontFamily("Songti TC", USCRIPT_TRADITIONAL_HAN); 46 #else47 setStandardFontFamily("Apple LiSung", USCRIPT_TRADITIONAL_HAN);48 setSerifFontFamily("Apple LiSung", USCRIPT_TRADITIONAL_HAN);49 #endif50 45 #else 51 46 // There is no serif Chinese font in default iOS installation. … … 57 52 58 53 #if !PLATFORM(IOS) 59 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 109060 54 setStandardFontFamily("Songti SC", USCRIPT_SIMPLIFIED_HAN); 61 55 setSerifFontFamily("Songti SC", USCRIPT_SIMPLIFIED_HAN); 62 #else63 setStandardFontFamily("STSong", USCRIPT_SIMPLIFIED_HAN);64 setSerifFontFamily("STSong", USCRIPT_SIMPLIFIED_HAN);65 #endif66 56 #else 67 57 // There is no serif Chinese font in default iOS installation. -
trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp
r171299 r179364 36 36 37 37 static const size_t kWebAudioBufferSize = 128; 38 39 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109040 38 static const size_t kLowPowerVideoBufferSize = 4096; 41 #endif42 39 43 40 void MediaSessionManager::updateSessionState() … … 47 44 if (has(MediaSession::WebAudio)) 48 45 AudioSession::sharedSession().setPreferredBufferSize(kWebAudioBufferSize); 49 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109050 46 else if ((has(MediaSession::Video) || has(MediaSession::Audio)) && Settings::lowPowerVideoAudioBufferSizeEnabled()) { 51 47 // FIXME: <http://webkit.org/b/116725> Figure out why enabling the code below … … 60 56 AudioSession::sharedSession().setPreferredBufferSize(bufferSize); 61 57 } 62 #endif63 58 64 59 #if PLATFORM(IOS) -
trunk/Source/WebCore/platform/cocoa/MemoryPressureHandlerCocoa.mm
r179211 r179364 85 85 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000 86 86 _cache_event_source = dispatch_source_create(DISPATCH_SOURCE_TYPE_MEMORYSTATUS, 0, DISPATCH_MEMORYSTATUS_PRESSURE_NORMAL | DISPATCH_MEMORYSTATUS_PRESSURE_WARN | DISPATCH_MEMORYSTATUS_PRESSURE_CRITICAL, dispatch_get_main_queue()); 87 #elif PLATFORM(MAC) && MAC_OS_X_VERSION_MIN_REQUIRED >= 109087 #elif PLATFORM(MAC) 88 88 _cache_event_source = wkCreateMemoryStatusPressureCriticalDispatchOnMainQueue(); 89 89 #else … … 190 190 } 191 191 192 #if PLATFORM(IOS) || (PLATFORM(MAC) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)193 192 size_t MemoryPressureHandler::ReliefLogger::platformMemoryUsage() 194 193 { … … 223 222 NSLog(@"Pressure relief: %s: =dirty (at %ld bytes)\n", m_logString, currentMemory); 224 223 } 225 #else226 void MemoryPressureHandler::ReliefLogger::platformLog() { }227 size_t MemoryPressureHandler::ReliefLogger::platformMemoryUsage() { return 0; }228 #endif229 224 230 225 #if PLATFORM(IOS) -
trunk/Source/WebCore/platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
r174825 r179364 235 235 String AVTrackPrivateAVFObjCImpl::languageForAVMediaSelectionOption(AVMediaSelectionOption* option) 236 236 { 237 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090238 237 NSString *language = [option extendedLanguageTag]; 239 #else240 NSString *language = nil;241 #endif242 238 243 239 // If the language code is stored as a QuickTime 5-bit packed code there aren't enough bits for a full -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h
r173197 r179364 31 31 #include <wtf/RetainPtr.h> 32 32 33 #if ENABLE(ENCRYPTED_MEDIA_V2) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 109033 #if ENABLE(ENCRYPTED_MEDIA_V2) 34 34 35 35 OBJC_CLASS AVAssetResourceLoadingRequest; -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
r176924 r179364 27 27 #import "CDMSessionAVFoundationObjC.h" 28 28 29 #if ENABLE(ENCRYPTED_MEDIA_V2) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 109029 #if ENABLE(ENCRYPTED_MEDIA_V2) 30 30 31 31 #import "CDM.h" -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r179283 r179364 596 596 createAVPlayerLayer(); 597 597 598 #if USE(VIDEOTOOLBOX) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090598 #if USE(VIDEOTOOLBOX) 599 599 if (!m_videoOutput) 600 600 createVideoOutput(); … … 2012 2012 2013 2013 #if USE(VIDEOTOOLBOX) 2014 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10902015 2014 NSDictionary* attributes = nil; 2016 #else2017 NSDictionary* attributes = @{ (NSString*)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_422YpCbCr8) };2018 #endif2019 2015 #else 2020 2016 NSDictionary* attributes = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithUnsignedInt:kCVPixelFormatType_32BGRA], kCVPixelBufferPixelFormatTypeKey, -
trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm
r178927 r179364 154 154 IOSurface::SurfaceState IOSurface::state() const 155 155 { 156 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090157 156 uint32_t previousState = 0; 158 157 IOReturn ret = IOSurfaceSetPurgeable(m_surface.get(), kIOSurfacePurgeableKeepCurrent, &previousState); 159 158 ASSERT_UNUSED(ret, ret == kIOReturnSuccess); 160 159 return previousState == kIOSurfacePurgeableEmpty ? IOSurface::SurfaceState::Empty : IOSurface::SurfaceState::Valid; 161 #else162 return SurfaceState::Valid;163 #endif164 160 } 165 161 166 162 bool IOSurface::isVolatile() const 167 163 { 168 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090169 164 uint32_t previousState = 0; 170 165 IOReturn ret = IOSurfaceSetPurgeable(m_surface.get(), kIOSurfacePurgeableKeepCurrent, &previousState); 171 166 ASSERT_UNUSED(ret, ret == kIOReturnSuccess); 172 167 return previousState != kIOSurfacePurgeableNonVolatile; 173 #else174 return false;175 #endif176 168 } 177 169 178 170 IOSurface::SurfaceState IOSurface::setIsVolatile(bool isVolatile) 179 171 { 180 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090181 172 uint32_t previousState = 0; 182 173 IOReturn ret = IOSurfaceSetPurgeable(m_surface.get(), isVolatile ? kIOSurfacePurgeableVolatile : kIOSurfacePurgeableNonVolatile, &previousState); … … 185 176 if (previousState == kIOSurfacePurgeableEmpty) 186 177 return IOSurface::SurfaceState::Empty; 187 #else188 UNUSED_PARAM(isVolatile);189 #endif190 178 191 179 return IOSurface::SurfaceState::Valid; -
trunk/Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm
r178940 r179364 167 167 } 168 168 169 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090169 #if PLATFORM(MAC) 170 170 // Work around <rdar://problem/19433490> 171 171 CGGlyph dummyGlyphs[] = {0, 0}; -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r178166 r179364 255 255 #if PLATFORM(GTK) 256 256 ::glDrawArraysInstanced(mode, first, count, primcount); 257 #elif PLATFORM( IOS) || PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090257 #elif PLATFORM(COCOA) 258 258 ::glDrawArraysInstancedARB(mode, first, count, primcount); 259 259 #else … … 270 270 #if PLATFORM(GTK) 271 271 ::glDrawElementsInstanced(mode, count, type, reinterpret_cast<GLvoid*>(static_cast<intptr_t>(offset)), primcount); 272 #elif PLATFORM( IOS) || PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090272 #elif PLATFORM(COCOA) 273 273 ::glDrawElementsInstancedARB(mode, count, type, reinterpret_cast<GLvoid*>(static_cast<intptr_t>(offset)), primcount); 274 274 #else … … 286 286 #if PLATFORM(GTK) 287 287 ::glVertexAttribDivisor(index, divisor); 288 #elif PLATFORM( IOS) || PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090288 #elif PLATFORM(COCOA) 289 289 ::glVertexAttribDivisorARB(index, divisor); 290 290 #else -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r179283 r179364 298 298 #endif 299 299 300 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090300 #if PLATFORM(MAC) 301 301 extern dispatch_source_t (*wkCreateMemoryStatusPressureCriticalDispatchOnMainQueue)(void); 302 302 #endif -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r179283 r179364 152 152 dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void); 153 153 154 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090154 #if PLATFORM(MAC) 155 155 dispatch_source_t (*wkCreateMemoryStatusPressureCriticalDispatchOnMainQueue)(void); 156 156 #endif -
trunk/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
r176949 r179364 195 195 } 196 196 197 #if PLATFORM( IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)197 #if PLATFORM(COCOA) 198 198 RetainPtr<CFDataRef> sourceApplicationAuditData = d->m_context->sourceApplicationAuditData(); 199 199 if (sourceApplicationAuditData) -
trunk/Source/WebCore/platform/network/cocoa/ProtectionSpaceCocoa.h
r172862 r179364 55 55 static bool platformCompare(const ProtectionSpace& a, const ProtectionSpace& b); 56 56 57 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109058 57 WEBCORE_EXPORT bool encodingRequiresPlatformData() const { return m_nsSpace && encodingRequiresPlatformData(m_nsSpace.get()); } 59 #endif60 58 61 59 WEBCORE_EXPORT bool receivesCredentialSecurely() const; … … 67 65 68 66 private: 69 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109070 67 WEBCORE_EXPORT static bool encodingRequiresPlatformData(NSURLProtectionSpace *); 71 #endif72 68 73 69 mutable RetainPtr<NSURLProtectionSpace> m_nsSpace; -
trunk/Source/WebCore/platform/network/cocoa/ProtectionSpaceCocoa.mm
r171599 r179364 201 201 } 202 202 203 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090204 203 bool ProtectionSpace::encodingRequiresPlatformData(NSURLProtectionSpace *space) 205 204 { 206 205 return space.distinguishedNames || space.serverTrust; 207 206 } 208 #endif209 207 210 208 } // namespace WebCore -
trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm
r178612 r179364 207 207 } 208 208 209 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090210 209 RetainPtr<CFDataRef> sourceApplicationAuditData = d->m_context->sourceApplicationAuditData(); 211 210 if (sourceApplicationAuditData) 212 211 [streamProperties setObject:(NSData *)sourceApplicationAuditData.get() forKey:@"kCFStreamPropertySourceApplication"]; 213 #endif214 212 215 213 #if PLATFORM(IOS) -
trunk/Source/WebCore/platform/network/mac/WebCoreURLResponse.mm
r173192 r179364 329 329 NSURLResponse *synthesizeRedirectResponseIfNecessary(NSURLConnection *connection, NSURLRequest *newRequest, NSURLResponse *redirectResponse) 330 330 { 331 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090332 331 if (redirectResponse) 333 332 return redirectResponse; … … 340 339 NSDictionary *synthesizedResponseHeaderFields = @{ @"Location": [[newRequest URL] absoluteString], @"Cache-Control": @"no-store" }; 341 340 return [[[NSHTTPURLResponse alloc] initWithURL:[[connection currentRequest] URL] statusCode:302 HTTPVersion:(NSString *)kCFHTTPVersion1_1 headerFields:synthesizedResponseHeaderFields] autorelease]; 342 #else343 UNUSED_PARAM(connection);344 UNUSED_PARAM(newRequest);345 return redirectResponse;346 #endif347 341 } 348 342 #endif -
trunk/Source/WebCore/platform/spi/cf/CFNetworkSPI.h
r176451 r179364 69 69 EXTERN_C void CFURLCacheSetMemoryCapacity(CFURLCacheRef, CFIndex memoryCapacity); 70 70 EXTERN_C void _CFURLCachePurgeMemoryCache(CFURLCacheRef); 71 #if PLATFORM( IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109071 #if PLATFORM(COCOA) 72 72 EXTERN_C CFBooleanRef _CFURLCacheIsResponseDataMemMapped(CFURLCacheRef, CFDataRef); 73 73 EXTERN_C void _CFURLCacheSetMinSizeForVMCachedResource(CFURLCacheRef, CFIndex); … … 79 79 EXTERN_C void CFHTTPCookieStorageDeleteAllCookies(CFHTTPCookieStorageRef); 80 80 81 #if PLATFORM( IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109081 #if PLATFORM(COCOA) 82 82 EXTERN_C CFDataRef _CFCachedURLResponseGetMemMappedData(CFCachedURLResponseRef); 83 83 #ifdef __BLOCKS__ 84 84 EXTERN_C void _CFCachedURLResponseSetBecameFileBackedCallBackBlock(CFCachedURLResponseRef, CFCachedURLResponseCallBackBlock, dispatch_queue_t); 85 85 #endif 86 #endif // PLATFORM( IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109086 #endif // PLATFORM(COCOA) 87 87 88 88 EXTERN_C void CFURLConnectionInvalidateConnectionCache(); -
trunk/Source/WebCore/platform/text/mac/LocaleMac.mm
r177280 r179364 85 85 LocaleMac::LocaleMac(NSLocale* locale) 86 86 : m_locale(locale) 87 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)87 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || PLATFORM(MAC) 88 88 , m_gregorianCalendar(adoptNS([[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian])) 89 89 #else
Note: See TracChangeset
for help on using the changeset viewer.