Title: [149439] trunk/Source/WebKit2
- Revision
- 149439
- Author
- [email protected]
- Date
- 2013-05-01 10:45:11 -0700 (Wed, 01 May 2013)
Log Message
Entering full screen mode shows desktop linen instead of WKView the first time.
https://bugs.webkit.org/show_bug.cgi?id=115433
<rdar://problem/13774540>
Reviewed by Eric Carlson.
For certain types of windows created by subclasses of WKView, the window in question fails to paint
when created with a zero-size rect. Create the window with an initial size of the active screen frame
as that is the likely destination size.
* UIProcess/API/mac/WKView.mm:
(-[WKView createFullScreenWindow]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (149438 => 149439)
--- trunk/Source/WebKit2/ChangeLog 2013-05-01 17:38:56 UTC (rev 149438)
+++ trunk/Source/WebKit2/ChangeLog 2013-05-01 17:45:11 UTC (rev 149439)
@@ -1,3 +1,18 @@
+2013-04-30 Jer Noble <[email protected]>
+
+ Entering full screen mode shows desktop linen instead of WKView the first time.
+ https://bugs.webkit.org/show_bug.cgi?id=115433
+ <rdar://problem/13774540>
+
+ Reviewed by Eric Carlson.
+
+ For certain types of windows created by subclasses of WKView, the window in question fails to paint
+ when created with a zero-size rect. Create the window with an initial size of the active screen frame
+ as that is the likely destination size.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView createFullScreenWindow]):
+
2013-05-01 Zoltan Arvai <[email protected]>
[Qt][Win] Fix build after r149416.
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (149438 => 149439)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2013-05-01 17:38:56 UTC (rev 149438)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2013-05-01 17:45:11 UTC (rev 149439)
@@ -3394,7 +3394,7 @@
- (NSWindow*)createFullScreenWindow
{
#if ENABLE(FULLSCREEN_API)
- return [[[WebCoreFullScreenWindow alloc] initWithContentRect:NSZeroRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO] autorelease];
+ return [[[WebCoreFullScreenWindow alloc] initWithContentRect:[[NSScreen mainScreen] frame] styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO] autorelease];
#else
return nil;
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes