Changeset 149922 in webkit
- Timestamp:
- May 10, 2013, 6:59:15 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r149921 r149922 1 2013-05-10 Laszlo Gombos <l.gombos@samsung.com> 2 3 Remove Mac OS X Leopard (10.5) support 4 https://bugs.webkit.org/show_bug.cgi?id=107964 5 6 Reviewed by Ryosuke Niwa. 7 8 Removed the code for 10.5 and removed if-def for 10.6. 9 10 No new tests, covered by existing tests. 11 12 * platform/LocalizedStrings.cpp: 13 (WebCore::contextMenuItemTagLookUpInDictionary): 14 * platform/graphics/cg/GraphicsContextCG.cpp: 15 * platform/mac/EmptyProtocolDefinitions.h: 16 * platform/mac/NSScrollerImpDetails.h: 17 * platform/mac/WebCoreSystemInterface.h: 18 * platform/text/mac/HyphenationMac.mm: 19 1 20 2013-05-10 Laszlo Gombos <l.gombos@samsung.com> 2 21 -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r149255 r149922 255 255 String contextMenuItemTagLookUpInDictionary(const String& selectedString) 256 256 { 257 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060257 #if PLATFORM(MAC) && !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 258 258 UNUSED_PARAM(selectedString); 259 259 return WEB_UI_STRING("Look Up in Dictionary", "Look Up in Dictionary context menu item"); -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r149566 r149922 54 54 #endif 55 55 56 #if PLATFORM(MAC)57 58 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 106059 // Building on 10.6 or later: kCGInterpolationMedium is defined in the CGInterpolationQuality enum.60 #define HAVE_CG_INTERPOLATION_MEDIUM 161 #endif62 63 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 106064 // Targeting 10.6 or later: use kCGInterpolationMedium.65 #define WTF_USE_CG_INTERPOLATION_MEDIUM 166 #endif67 68 #endif69 70 56 extern "C" { 71 57 CG_EXTERN void CGContextSetCTM(CGContextRef, CGAffineTransform); … … 1338 1324 quality = kCGInterpolationLow; 1339 1325 break; 1340 1341 // Fall through to InterpolationHigh if kCGInterpolationMedium is not usable.1342 1326 case InterpolationMedium: 1343 #if USE(CG_INTERPOLATION_MEDIUM)1344 1327 quality = kCGInterpolationMedium; 1345 1328 break; 1346 #endif1347 1329 case InterpolationHigh: 1348 1330 quality = kCGInterpolationHigh; … … 1365 1347 case kCGInterpolationLow: 1366 1348 return InterpolationLow; 1367 #if HAVE(CG_INTERPOLATION_MEDIUM)1368 // kCGInterpolationMedium is known to be present in the CGInterpolationQuality enum.1369 1349 case kCGInterpolationMedium: 1370 #if USE(CG_INTERPOLATION_MEDIUM)1371 // Only map to InterpolationMedium if targeting a system that understands it.1372 1350 return InterpolationMedium; 1373 #else1374 return InterpolationDefault;1375 #endif // USE(CG_INTERPOLATION_MEDIUM)1376 #endif // HAVE(CG_INTERPOLATION_MEDIUM)1377 1351 case kCGInterpolationHigh: 1378 1352 return InterpolationHigh; -
trunk/Source/WebCore/platform/mac/EmptyProtocolDefinitions.h
r147710 r149922 30 30 @end 31 31 32 #if __MAC_OS_X_VERSION_MAX_ALLOWED <= 106032 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 33 33 34 34 EMPTY_PROTOCOL(NSURLConnectionDelegate) -
trunk/Source/WebCore/platform/mac/NSScrollerImpDetails.h
r147860 r149922 30 30 31 31 // Public APIs not available on versions of Mac on which we build 32 #if __MAC_OS_X_VERSION_MAX_ALLOWED <= 106032 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 33 33 enum { 34 34 NSScrollerStyleLegacy = 0, … … 45 45 #endif 46 46 47 #if __MAC_OS_X_VERSION_MAX_ALLOWED <= 106047 #if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060 48 48 @interface NSScroller(NSObject) 49 49 + (NSScrollerStyle)preferredScrollerStyle; -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r149342 r149922 292 292 extern AXUIElementRef (*wkCreateAXUIElementRef)(id element); 293 293 294 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060294 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 295 295 typedef struct __CFURLStorageSession* CFURLStorageSessionRef; 296 296 #else -
trunk/Source/WebCore/platform/text/mac/HyphenationMac.mm
r149255 r149922 27 27 #import "Hyphenation.h" 28 28 29 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 106029 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 30 30 31 31 #import "AtomicStringKeyedMRUCache.h" … … 68 68 } // namespace WebCore 69 69 70 #endif // !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 106070 #endif // !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 -
trunk/Source/WebKit/mac/ChangeLog
r149713 r149922 1 2013-05-10 Laszlo Gombos <l.gombos@samsung.com> 2 3 Remove Mac OS X Leopard (10.5) support 4 https://bugs.webkit.org/show_bug.cgi?id=107964 5 6 Reviewed by Ryosuke Niwa. 7 8 Removed the code for 10.5 and removed if-def for 10.6. 9 10 * DefaultDelegates/WebDefaultContextMenuDelegate.mm: 11 * Misc/WebKitErrors.m: 12 (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]): 13 * WebCoreSupport/WebSystemInterface.mm: 14 (InitWebCoreSystemInterface): 15 * WebView/WebClipView.mm: 16 (-[WebClipView _immediateScrollToPoint:]): 17 * WebView/WebFrameView.mm: 18 (-[WebFrameView initWithFrame:]): 19 * WebView/WebView.mm: 20 1 21 2013-05-07 Mark Rowe <mrowe@apple.com> 2 22 -
trunk/Source/WebKit/mac/DefaultDelegates/WebDefaultContextMenuDelegate.mm
r149255 r149922 137 137 } 138 138 139 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060139 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 140 140 #define INCLUDE_SPOTLIGHT_CONTEXT_MENU_ITEM 1 141 141 #else -
trunk/Source/WebKit/mac/Misc/WebKitErrors.m
r122400 r149922 117 117 if (contentURL) { 118 118 [userInfo setObject:contentURL forKey:@"NSErrorFailingURLKey"]; 119 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050120 [userInfo setObject:[contentURL _web_userVisibleString] forKey:NSErrorFailingURLStringKey];121 #else122 119 [userInfo setObject:[contentURL _web_userVisibleString] forKey:NSURLErrorFailingURLStringErrorKey]; 123 #endif124 120 } 125 121 if (pluginPageURL) { -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r149342 r149922 127 127 INIT(GetVerticalGlyphsForCharacters); 128 128 129 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060129 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 130 130 INIT(GetHyphenationLocationBeforeIndex); 131 131 INIT(GetNSEventMomentumPhase); -
trunk/Source/WebKit/mac/WebView/WebClipView.mm
r122400 r149922 53 53 @end 54 54 55 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 106056 55 @interface NSWindow (WebNSWindowDetails) 57 56 - (void)_disableDelayedWindowDisplay; 58 57 - (void)_enableDelayedWindowDisplay; 59 58 @end 60 #endif61 59 62 60 @implementation WebClipView … … 106 104 _isScrolling = YES; 107 105 108 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060109 106 [[self window] _disableDelayedWindowDisplay]; 110 #endif111 107 112 108 [super _immediateScrollToPoint:newOrigin]; 113 109 114 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060115 110 [[self window] _enableDelayedWindowDisplay]; 116 #endif117 111 118 112 _isScrolling = NO; -
trunk/Source/WebKit/mac/WebView/WebFrameView.mm
r122400 r149922 323 323 // FIXME: Remove the NSAppKitVersionNumberWithDeferredWindowDisplaySupport check once 324 324 // once AppKit's Deferred Window Display support is available. 325 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050 ||!defined(NSAppKitVersionNumberWithDeferredWindowDisplaySupport)325 #if !defined(NSAppKitVersionNumberWithDeferredWindowDisplaySupport) 326 326 // CoreGraphics deferred updates are disabled if WebKitEnableCoalescedUpdatesPreferenceKey is NO 327 327 // or has no value. For compatibility with Mac OS X 10.5 and lower, deferred updates are off by default. -
trunk/Source/WebKit/mac/WebView/WebView.mm
r149576 r149922 638 638 } 639 639 640 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060640 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 641 641 // This method should be removed once we no longer want to keep Safari 5.0.x working with nightly builds. 642 642 - (BOOL)_usesDocumentViews -
trunk/Tools/ChangeLog
r149916 r149922 1 2013-05-10 Laszlo Gombos <l.gombos@samsung.com> 2 3 Remove Mac OS X Leopard (10.5) support 4 https://bugs.webkit.org/show_bug.cgi?id=107964 5 6 Reviewed by Ryosuke Niwa. 7 8 Removed the code for 10.5 and removed if-def for 10.6. 9 10 * DumpRenderTree/cf/WebArchiveDumpSupport.cpp: 11 (convertMIMEType): 12 (createXMLStringFromWebArchiveData): 13 * DumpRenderTree/mac/TestRunnerMac.mm: 14 (TestRunner::authenticateSession): 15 (TestRunner::setTextDirection): 16 * WebKitTestRunner/cf/WebArchiveDumpSupport.cpp: 17 (convertMIMEType): 18 (createXMLStringFromWebArchiveData): 19 1 20 2013-05-10 Brent Fulgham <bfulgham@apple.com> 2 21 -
trunk/Tools/DumpRenderTree/cf/WebArchiveDumpSupport.cpp
r149716 r149922 45 45 static void convertMIMEType(CFMutableStringRef mimeType) 46 46 { 47 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 105048 // Workaround for <rdar://problem/5539824> on Leopard49 if (CFStringCompare(mimeType, CFSTR("text/xml"), kCFCompareAnchored | kCFCompareCaseInsensitive) == kCFCompareEqualTo)50 CFStringReplaceAll(mimeType, CFSTR("application/xml"));51 #endif52 47 // Workaround for <rdar://problem/6234318> with Dashcode 2.0 53 48 if (CFStringCompare(mimeType, CFSTR("application/x-javascript"), kCFCompareAnchored | kCFCompareCaseInsensitive) == kCFCompareEqualTo) … … 158 153 CFErrorRef error = 0; 159 154 CFPropertyListFormat format = kCFPropertyListBinaryFormat_v1_0; 160 161 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050162 CFIndex bytesCount = CFDataGetLength(webArchiveData);163 RetainPtr<CFReadStreamRef> readStream = adoptCF(CFReadStreamCreateWithBytesNoCopy(kCFAllocatorDefault, CFDataGetBytePtr(webArchiveData), bytesCount, kCFAllocatorNull));164 CFReadStreamOpen(readStream.get());165 RetainPtr<CFMutableDictionaryRef> propertyList = adoptCF((CFMutableDictionaryRef)CFPropertyListCreateFromStream(kCFAllocatorDefault, readStream.get(), bytesCount, kCFPropertyListMutableContainersAndLeaves, &format, 0));166 CFReadStreamClose(readStream.get());167 #else168 155 RetainPtr<CFMutableDictionaryRef> propertyList = adoptCF((CFMutableDictionaryRef)CFPropertyListCreateWithData(kCFAllocatorDefault, webArchiveData, kCFPropertyListMutableContainersAndLeaves, &format, &error)); 169 #endif170 156 171 157 if (!propertyList) { … … 208 194 209 195 error = 0; 210 211 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050212 RetainPtr<CFDataRef> xmlData = adoptCF(CFPropertyListCreateXMLData(kCFAllocatorDefault, propertyList.get()));213 #else214 196 RetainPtr<CFDataRef> xmlData = adoptCF(CFPropertyListCreateData(kCFAllocatorDefault, propertyList.get(), kCFPropertyListXMLFormat_v1_0, 0, &error)); 215 #endif216 197 217 198 if (!xmlData) { -
trunk/Tools/DumpRenderTree/mac/TestRunnerMac.mm
r149716 r149922 921 921 static NSString *SynchronousLoaderRunLoopMode = @"DumpRenderTreeSynchronousLoaderRunLoopMode"; 922 922 923 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060923 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1060 924 924 @protocol NSURLConnectionDelegate <NSObject> 925 925 @end … … 997 997 { 998 998 // See <rdar://problem/7880699>. 999 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10601000 999 RetainPtr<CFStringRef> urlStringCF = adoptCF(JSStringCopyCFString(kCFAllocatorDefault, url)); 1001 1000 RetainPtr<CFStringRef> usernameCF = adoptCF(JSStringCopyCFString(kCFAllocatorDefault, username)); … … 1005 1004 1006 1005 [SynchronousLoader makeRequest:request.get() withUsername:(NSString *)usernameCF.get() password:(NSString *)passwordCF.get()]; 1007 #endif1008 1006 } 1009 1007 … … 1020 1018 void TestRunner::setTextDirection(JSStringRef directionName) 1021 1019 { 1022 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10601023 1020 if (JSStringIsEqualToUTF8CString(directionName, "ltr")) 1024 1021 [[mainFrame webView] makeBaseWritingDirectionLeftToRight:0]; … … 1027 1024 else 1028 1025 ASSERT_NOT_REACHED(); 1029 #endif1030 1026 } 1031 1027 -
trunk/Tools/WebKitTestRunner/cf/WebArchiveDumpSupport.cpp
r149725 r149922 45 45 static void convertMIMEType(CFMutableStringRef mimeType) 46 46 { 47 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 105048 // Workaround for <rdar://problem/5539824> on Leopard49 if (CFStringCompare(mimeType, CFSTR("text/xml"), kCFCompareAnchored | kCFCompareCaseInsensitive) == kCFCompareEqualTo)50 CFStringReplaceAll(mimeType, CFSTR("application/xml"));51 #endif52 47 // Workaround for <rdar://problem/6234318> with Dashcode 2.0 53 48 if (CFStringCompare(mimeType, CFSTR("application/x-javascript"), kCFCompareAnchored | kCFCompareCaseInsensitive) == kCFCompareEqualTo) … … 158 153 CFErrorRef error = 0; 159 154 CFPropertyListFormat format = kCFPropertyListBinaryFormat_v1_0; 160 161 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050162 CFIndex bytesCount = CFDataGetLength(webArchiveData);163 RetainPtr<CFReadStreamRef> readStream = adoptCF(CFReadStreamCreateWithBytesNoCopy(kCFAllocatorDefault, CFDataGetBytePtr(webArchiveData), bytesCount, kCFAllocatorNull));164 CFReadStreamOpen(readStream.get());165 RetainPtr<CFMutableDictionaryRef> propertyList = adoptCF((CFMutableDictionaryRef)CFPropertyListCreateFromStream(kCFAllocatorDefault, readStream.get(), bytesCount, kCFPropertyListMutableContainersAndLeaves, &format, 0));166 CFReadStreamClose(readStream.get());167 #else168 155 RetainPtr<CFMutableDictionaryRef> propertyList = adoptCF((CFMutableDictionaryRef)CFPropertyListCreateWithData(kCFAllocatorDefault, webArchiveData, kCFPropertyListMutableContainersAndLeaves, &format, &error)); 169 #endif170 156 171 157 if (!propertyList) { … … 209 195 error = 0; 210 196 211 #if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050212 RetainPtr<CFDataRef> xmlData = adoptCF(CFPropertyListCreateXMLData(kCFAllocatorDefault, propertyList.get()));213 #else214 197 RetainPtr<CFDataRef> xmlData = adoptCF(CFPropertyListCreateData(kCFAllocatorDefault, propertyList.get(), kCFPropertyListXMLFormat_v1_0, 0, &error)); 215 #endif216 198 217 199 if (!xmlData) {
Note:
See TracChangeset
for help on using the changeset viewer.