On post-Lion releases, preserve the Lion behavior where WebKit explicitly calls ...
authormdelaney@apple.com <mdelaney@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2012 03:59:02 +0000 (03:59 +0000)
committermdelaney@apple.com <mdelaney@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2012 03:59:02 +0000 (03:59 +0000)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105234 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mac/WebCoreSystemInterface.h
Source/WebCore/platform/mac/WebCoreSystemInterface.mm
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
Source/WebKit/mac/WebView/WebHTMLView.mm
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm

index b292993..136066a 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-17  Matthew Delaney  <mdelaney@apple.com>
+
+        On post-Lion releases, preserve the Lion behavior where WebKit explicitly calls -setGeometryFlipped on the hosting layer for applications that were linked on Lion or earlier.
+        <rdar://problem/10692025>
+
+        Reviewed by Simon Fraser.
+
+        * platform/mac/WebCoreSystemInterface.h: Added in new function for checking if linked-on-or-before Lion.
+        * platform/mac/WebCoreSystemInterface.mm: Ditto.
+
 2012-01-17  Yongsheng Zhu  <yongsheng.zhu@intel.com>
 
         Clear 'm_size' of DrawingBuffer in the 'clear' function
index d988669..2f58b92 100644 (file)
@@ -294,6 +294,7 @@ extern dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void);
 
 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
 extern NSString *(*wkGetMacOSXVersionString)(void);
+extern bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
 #endif
 
 }
index b4ca540..f01747d 100644 (file)
@@ -179,4 +179,5 @@ dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void);
 
 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
 NSString *(*wkGetMacOSXVersionString)(void);
+bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
 #endif
index c8984c3..37b9208 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-17  Matthew Delaney  <mdelaney@apple.com>
+
+        On post-Lion releases, preserve the Lion behavior where WebKit explicitly calls -setGeometryFlipped on the hosting layer for applications that were linked on Lion or earlier.
+        <rdar://problem/10692025>
+
+        Reviewed by Simon Fraser.
+
+        * WebCoreSupport/WebSystemInterface.mm: Init newly added function.
+        * WebView/WebHTMLView.mm: Added case for post-Lion builds that calls -setGeometryFlipped if the app is linked on or before Lion.
+
 2012-01-17  Enrica Casucci  <enrica@apple.com>
 
         REGRESSION (r101413): Correction panel overlaps misspelled text.
index 0a780ff..5c3cdb3 100644 (file)
@@ -171,6 +171,7 @@ void InitWebCoreSystemInterface(void)
 
 #if PLATFORM(MAC) && !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
     INIT(GetMacOSXVersionString);
+    INIT(ExecutableWasLinkedOnOrBeforeLion);
 #endif
 
     didInit = true;
index 44bc647..8d400f6 100644 (file)
@@ -5519,6 +5519,9 @@ static CGPoint coreGraphicsScreenPointForAppKitScreenPoint(NSPoint point)
 #elif (defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LION))
     // Do geometry flipping here, which flips all the compositing layers so they are top-down.
     [viewLayer setGeometryFlipped:YES];
+#else
+    if (WKExecutableWasLinkedOnOrBeforeLion())
+        [viewLayer setGeometryFlipped:YES];
 #endif
 }
 
index 2c481d6..7800ddb 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-17  Matthew Delaney  <mdelaney@apple.com>
+
+        On post-Lion releases, preserve the Lion behavior where WebKit explicitly calls -setGeometryFlipped on the hosting layer for applications that were linked on Lion or earlier.
+        <rdar://problem/10692025>
+
+        Reviewed by Simon Fraser.
+
+        * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: Init new function.
+        (InitWebCoreSystemInterface):
+
 2012-01-17  Sam Weinig  <sam@webkit.org>
 
         Rename quickLookPreviewItemsAtWindowLocation: to quickLookWithEvent:
index 29c4ac3..c40a68a 100644 (file)
@@ -156,6 +156,7 @@ void InitWebCoreSystemInterface(void)
 
 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
         INIT(GetMacOSXVersionString);
+        INIT(ExecutableWasLinkedOnOrBeforeLion);
 #endif
 
     });