Title: [171199] trunk/Tools
- Revision
- 171199
- Author
- wei...@apple.com
- Date
- 2014-07-17 14:38:08 -0700 (Thu, 17 Jul 2014)
Log Message
Fix failing API tests.
* TestWebKitAPI/mac/PlatformWebViewMac.mm:
(-[ActiveOffscreenWindow isVisible]):
Override isVisible to make the NSWindows pretend they are visible.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (171198 => 171199)
--- trunk/Tools/ChangeLog 2014-07-17 21:33:55 UTC (rev 171198)
+++ trunk/Tools/ChangeLog 2014-07-17 21:38:08 UTC (rev 171199)
@@ -1,3 +1,11 @@
+2014-07-17 Sam Weinig <s...@webkit.org>
+
+ Fix failing API tests.
+
+ * TestWebKitAPI/mac/PlatformWebViewMac.mm:
+ (-[ActiveOffscreenWindow isVisible]):
+ Override isVisible to make the NSWindows pretend they are visible.
+
2014-07-17 Alexey Proskuryakov <a...@apple.com>
Disable button animations in regression tests
Modified: trunk/Tools/MiniBrowser/mac/BrowserWindowController.m (171198 => 171199)
--- trunk/Tools/MiniBrowser/mac/BrowserWindowController.m 2014-07-17 21:33:55 UTC (rev 171198)
+++ trunk/Tools/MiniBrowser/mac/BrowserWindowController.m 2014-07-17 21:38:08 UTC (rev 171199)
@@ -42,6 +42,7 @@
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
self.window.styleMask |= NSFullSizeContentViewWindowMask;
#endif
+ [self.window.contentView setWantsLayer:YES];
[super windowDidLoad];
}
Modified: trunk/Tools/TestWebKitAPI/mac/PlatformWebViewMac.mm (171198 => 171199)
--- trunk/Tools/TestWebKitAPI/mac/PlatformWebViewMac.mm 2014-07-17 21:33:55 UTC (rev 171198)
+++ trunk/Tools/TestWebKitAPI/mac/PlatformWebViewMac.mm 2014-07-17 21:38:08 UTC (rev 171199)
@@ -37,6 +37,10 @@
{
return YES;
}
+- (BOOL)isVisible
+{
+ return YES;
+}
@end
namespace TestWebKitAPI {
@@ -45,6 +49,7 @@
{
NSRect rect = NSMakeRect(0, 0, 800, 600);
m_view = [[WKView alloc] initWithFrame:rect contextRef:contextRef pageGroupRef:pageGroupRef];
+ [m_view setWindowOcclusionDetectionEnabled:NO];
NSRect windowRect = NSOffsetRect(rect, -10000, [(NSScreen *)[[NSScreen screens] objectAtIndex:0] frame].size.height - rect.size.height + 10000);
m_window = [[ActiveOffscreenWindow alloc] initWithContentRect:windowRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES];
@@ -67,7 +72,6 @@
[m_view setFrame:NSMakeRect(0, 0, width, height)];
}
-
WKPageRef PlatformWebView::page() const
{
return [m_view pageRef];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes