Changeset 171199 in webkit


Ignore:
Timestamp:
Jul 17, 2014 2:38:08 PM (10 years ago)
Author:
weinig@apple.com
Message:

Fix failing API tests.

  • TestWebKitAPI/mac/PlatformWebViewMac.mm:

(-[ActiveOffscreenWindow isVisible]):
Override isVisible to make the NSWindows pretend they are visible.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r171193 r171199  
     12014-07-17  Sam Weinig  <sam@webkit.org>
     2
     3        Fix failing API tests.
     4
     5        * TestWebKitAPI/mac/PlatformWebViewMac.mm:
     6        (-[ActiveOffscreenWindow isVisible]):
     7        Override isVisible to make the NSWindows pretend they are visible.
     8
    192014-07-17  Alexey Proskuryakov  <ap@apple.com>
    210
  • trunk/Tools/MiniBrowser/mac/BrowserWindowController.m

    r170667 r171199  
    4343    self.window.styleMask |= NSFullSizeContentViewWindowMask;
    4444#endif
     45    [self.window.contentView setWantsLayer:YES];
    4546
    4647    [super windowDidLoad];
  • trunk/Tools/TestWebKitAPI/mac/PlatformWebViewMac.mm

    r168961 r171199  
    3838    return YES;
    3939}
     40- (BOOL)isVisible
     41{
     42    return YES;
     43}
    4044@end
    4145
     
    4650    NSRect rect = NSMakeRect(0, 0, 800, 600);
    4751    m_view = [[WKView alloc] initWithFrame:rect contextRef:contextRef pageGroupRef:pageGroupRef];
     52    [m_view setWindowOcclusionDetectionEnabled:NO];
    4853
    4954    NSRect windowRect = NSOffsetRect(rect, -10000, [(NSScreen *)[[NSScreen screens] objectAtIndex:0] frame].size.height - rect.size.height + 10000);
     
    6772    [m_view setFrame:NSMakeRect(0, 0, width, height)];
    6873}
    69 
    7074
    7175WKPageRef PlatformWebView::page() const
Note: See TracChangeset for help on using the changeset viewer.