Changeset 149439 in webkit


Ignore:
Timestamp:
May 1, 2013 10:45:11 AM (11 years ago)
Author:
jer.noble@apple.com
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]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r149433 r149439  
     12013-04-30  Jer Noble  <jer.noble@apple.com>
     2
     3        Entering full screen mode shows desktop linen instead of WKView the first time.
     4        https://bugs.webkit.org/show_bug.cgi?id=115433
     5        <rdar://problem/13774540>
     6
     7        Reviewed by Eric Carlson.
     8
     9        For certain types of windows created by subclasses of WKView, the window in question fails to paint
     10        when created with a zero-size rect. Create the window with an initial size of the active screen frame
     11        as that is the likely destination size.
     12
     13        * UIProcess/API/mac/WKView.mm:
     14        (-[WKView createFullScreenWindow]):
     15
    1162013-05-01  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
    217
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r149260 r149439  
    33953395{
    33963396#if ENABLE(FULLSCREEN_API)
    3397     return [[[WebCoreFullScreenWindow alloc] initWithContentRect:NSZeroRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO] autorelease];
     3397    return [[[WebCoreFullScreenWindow alloc] initWithContentRect:[[NSScreen mainScreen] frame] styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO] autorelease];
    33983398#else
    33993399    return nil;
Note: See TracChangeset for help on using the changeset viewer.