Title: [102377] trunk/Source/WebKit2
- Revision
- 102377
- Author
- jer.no...@apple.com
- Date
- 2011-12-08 13:23:16 -0800 (Thu, 08 Dec 2011)
Log Message
HiDPI: Switching a video element to full screen in HiDPI mode doesn't fit the screen correctly
https://bugs.webkit.org/show_bug.cgi?id=74119
rdar://problem/10356869
Reviewed by Darin Adler.
Use the Lion-only -[NSWindow convertRectToScreen:] function to convert between window
coordinates and screen coordinates.
* UIProcess/mac/WKFullScreenWindowController.mm:
(-[WKFullScreenWindowController enterFullScreen:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (102376 => 102377)
--- trunk/Source/WebKit2/ChangeLog 2011-12-08 21:21:15 UTC (rev 102376)
+++ trunk/Source/WebKit2/ChangeLog 2011-12-08 21:23:16 UTC (rev 102377)
@@ -1,3 +1,17 @@
+2011-12-08 Jer Noble <jer.no...@apple.com>
+
+ HiDPI: Switching a video element to full screen in HiDPI mode doesn't fit the screen correctly
+ https://bugs.webkit.org/show_bug.cgi?id=74119
+ rdar://problem/10356869
+
+ Reviewed by Darin Adler.
+
+ Use the Lion-only -[NSWindow convertRectToScreen:] function to convert between window
+ coordinates and screen coordinates.
+
+ * UIProcess/mac/WKFullScreenWindowController.mm:
+ (-[WKFullScreenWindowController enterFullScreen:]):
+
2011-12-08 Csaba Osztrogonác <o...@webkit.org>
[Qt][WK2] Unreviewed buildfix after r102352.
Modified: trunk/Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm (102376 => 102377)
--- trunk/Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm 2011-12-08 21:21:15 UTC (rev 102376)
+++ trunk/Source/WebKit2/UIProcess/mac/WKFullScreenWindowController.mm 2011-12-08 21:23:16 UTC (rev 102377)
@@ -188,8 +188,13 @@
screen = [NSScreen mainScreen];
NSRect screenFrame = [screen frame];
+#if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
NSRect webViewFrame = [_webView convertRectToBase:[_webView frame]];
webViewFrame.origin = [[_webView window] convertBaseToScreen:webViewFrame.origin];
+#else
+ NSRect webViewFrame = [[_webView window] convertRectToScreen:
+ [_webView convertRect:[_webView frame] toView:nil]];
+#endif
// In the case of a multi-monitor setup where the webView straddles two
// monitors, we must create a window large enough to contain the destination
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes