Diff
Modified: trunk/Source/WebCore/ChangeLog (105233 => 105234)
--- trunk/Source/WebCore/ChangeLog 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebCore/ChangeLog 2012-01-18 03:59:02 UTC (rev 105234)
@@ -1,3 +1,13 @@
+2012-01-17 Matthew Delaney <[email protected]>
+
+ 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 <[email protected]>
Clear 'm_size' of DrawingBuffer in the 'clear' function
Modified: trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h (105233 => 105234)
--- trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h 2012-01-18 03:59:02 UTC (rev 105234)
@@ -294,6 +294,7 @@
#if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
extern NSString *(*wkGetMacOSXVersionString)(void);
+extern bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
#endif
}
Modified: trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm (105233 => 105234)
--- trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm 2012-01-18 03:59:02 UTC (rev 105234)
@@ -179,4 +179,5 @@
#if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
NSString *(*wkGetMacOSXVersionString)(void);
+bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
#endif
Modified: trunk/Source/WebKit/mac/ChangeLog (105233 => 105234)
--- trunk/Source/WebKit/mac/ChangeLog 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebKit/mac/ChangeLog 2012-01-18 03:59:02 UTC (rev 105234)
@@ -1,3 +1,13 @@
+2012-01-17 Matthew Delaney <[email protected]>
+
+ 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 <[email protected]>
REGRESSION (r101413): Correction panel overlaps misspelled text.
Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm (105233 => 105234)
--- trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm 2012-01-18 03:59:02 UTC (rev 105234)
@@ -171,6 +171,7 @@
#if PLATFORM(MAC) && !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
INIT(GetMacOSXVersionString);
+ INIT(ExecutableWasLinkedOnOrBeforeLion);
#endif
didInit = true;
Modified: trunk/Source/WebKit/mac/WebView/WebHTMLView.mm (105233 => 105234)
--- trunk/Source/WebKit/mac/WebView/WebHTMLView.mm 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebKit/mac/WebView/WebHTMLView.mm 2012-01-18 03:59:02 UTC (rev 105234)
@@ -5519,6 +5519,9 @@
#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
}
Modified: trunk/Source/WebKit2/ChangeLog (105233 => 105234)
--- trunk/Source/WebKit2/ChangeLog 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebKit2/ChangeLog 2012-01-18 03:59:02 UTC (rev 105234)
@@ -1,3 +1,13 @@
+2012-01-17 Matthew Delaney <[email protected]>
+
+ 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 <[email protected]>
Rename quickLookPreviewItemsAtWindowLocation: to quickLookWithEvent:
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm (105233 => 105234)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm 2012-01-18 03:24:38 UTC (rev 105233)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm 2012-01-18 03:59:02 UTC (rev 105234)
@@ -156,6 +156,7 @@
#if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION)
INIT(GetMacOSXVersionString);
+ INIT(ExecutableWasLinkedOnOrBeforeLion);
#endif
});