Changeset 101215 in webkit
- Timestamp:
- Nov 27, 2011, 3:47:22 PM (15 years ago)
- Location:
- trunk/Source
- Files:
-
- 10 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/WebCore.exp.in (modified) (1 diff)
-
WebCore/platform/mac/WebCoreSystemInterface.h (modified) (1 diff)
-
WebCore/platform/mac/WebCoreSystemInterface.mm (modified) (1 diff)
-
WebKit/mac/ChangeLog (modified) (1 diff)
-
WebKit/mac/WebCoreSupport/WebSystemInterface.mm (modified) (1 diff)
-
WebKit/mac/WebView/WebView.mm (modified) (2 diffs)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/UIProcess/mac/WebPageProxyMac.mm (modified) (3 diffs)
-
WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r101213 r101215 1 2011-11-27 Mark Rowe <mrowe@apple.com> 2 3 <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version 4 5 Reviewed by Dan Bernstein. 6 7 * WebCore.exp.in: Expose the necessary symbol. 8 * platform/mac/WebCoreSystemInterface.h: Ditto. 9 * platform/mac/WebCoreSystemInterface.mm: Ditto. 10 1 11 2011-11-27 Anna Cavender <annacc@chromium.org> 2 12 -
trunk/Source/WebCore/WebCore.exp.in
r100985 r101215 1557 1557 #endif 1558 1558 1559 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 1560 _wkGetMacOSXVersionString 1561 #endif 1562 1559 1563 _wkUnregisterUniqueIdForElement 1560 1564 _wkAccessibilityHandleFocusChanged -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r98280 r101215 311 311 extern void (*wkSetRequestStorageSession)(CFURLStorageSessionRef, CFMutableURLRequestRef); 312 312 #endif 313 313 314 314 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 315 315 #import <dispatch/dispatch.h> 316 316 317 317 extern dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void); 318 319 #endif 318 319 #endif 320 321 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 322 extern NSString *(*wkGetMacOSXVersionString)(void); 323 #endif 324 320 325 } 321 326 -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r98280 r101215 177 177 #endif 178 178 179 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 180 NSString *(*wkGetMacOSXVersionString)(void); 181 #endif -
trunk/Source/WebKit/mac/ChangeLog
r101201 r101215 1 2011-11-27 Mark Rowe <mrowe@apple.com> 2 3 <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version 4 5 Reviewed by Dan Bernstein. 6 7 * WebCoreSupport/WebSystemInterface.mm: 8 (InitWebCoreSystemInterface): Set up wkGetMacOSXVersionString. 9 * WebView/WebView.mm: 10 (createMacOSXVersionString): Use WKGetMacOSXVersionString. 11 1 12 2011-11-26 Pavel Feldman <pfeldman@google.com> 2 13 -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r98280 r101215 167 167 #endif 168 168 169 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 170 INIT(GetMacOSXVersionString); 171 #endif 172 169 173 didInit = true; 170 174 } -
trunk/Source/WebKit/mac/WebView/WebView.mm
r100534 r101215 507 507 @implementation WebView (WebPrivate) 508 508 509 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 510 511 static NSString *createMacOSXVersionString() 512 { 513 // Use underscores instead of dots because when we first added the Mac OS X version to the user agent string 514 // we were concerned about old DHTML libraries interpreting "4." as Netscape 4. That's no longer a concern for us 515 // but we're sticking with the underscores for compatibility with the format used by older versions of Safari. 516 return [WKGetMacOSXVersionString() stringByReplacingOccurrencesOfString:@"." withString:@"_"]; 517 } 518 519 #else 520 509 521 static inline int callGestalt(OSType selector) 510 522 { … … 529 541 return [[NSString alloc] initWithFormat:@"%d", major]; 530 542 } 543 544 #endif // !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 531 545 532 546 static NSString *createUserVisibleWebKitVersionString() -
trunk/Source/WebKit2/ChangeLog
r101201 r101215 1 2011-11-27 Mark Rowe <mrowe@apple.com> 2 3 <http://webkit.org/b/72665> Switch to a more modern approach to retrieving the OS marketing version 4 5 Reviewed by Dan Bernstein. 6 7 * UIProcess/mac/WebPageProxyMac.mm: 8 (WebKit::macOSXVersionString): Use WKGetMacOSXVersionString. 9 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: 10 (InitWebCoreSystemInterface): Set up wkGetMacOSXVersionString. 11 1 12 2011-11-26 Pavel Feldman <pfeldman@google.com> 2 13 -
trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm
r95901 r101215 38 38 #import "WebPageMessages.h" 39 39 #import "WebProcessProxy.h" 40 #import <WebKitSystemInterface.h> 40 41 #import <wtf/text/StringConcatenate.h> 41 42 … … 58 59 #endif 59 60 61 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 62 63 static String macOSXVersionString() 64 { 65 // Use underscores instead of dots because when we first added the Mac OS X version to the user agent string 66 // we were concerned about old DHTML libraries interpreting "4." as Netscape 4. That's no longer a concern for us 67 // but we're sticking with the underscores for compatibility with the format used by older versions of Safari. 68 return [WKGetMacOSXVersionString() stringByReplacingOccurrencesOfString:@"." withString:@"_"]; 69 } 70 71 #else 72 60 73 static inline int callGestalt(OSType selector) 61 74 { … … 80 93 return String::format("%d", major); 81 94 } 95 96 #endif // !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 82 97 83 98 static String userVisibleWebKitVersionString() -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r98280 r101215 142 142 INIT(AccessibilityHandleFocusChanged); 143 143 INIT(CreateAXUIElementRef); 144 INIT(UnregisterUniqueIdForElement); 144 INIT(UnregisterUniqueIdForElement); 145 145 146 146 INIT(GetCFURLResponseMIMEType); … … 154 154 #endif 155 155 156 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) 157 INIT(GetMacOSXVersionString); 158 #endif 159 156 160 }); 157 161 }
Note:
See TracChangeset
for help on using the changeset viewer.