[wk2] WebKitTestRunner's window snapshots are blank with tiled drawing

https://bugs.webkit.org/show_bug.cgi?id=122006
<rdar://problem/15095197>

Reviewed by Dean Jackson.

* WebKitTestRunner/mac/PlatformWebViewMac.mm:
(WTR::PlatformWebView::PlatformWebView):
Layer-back the root view in WebKitTestRunner's window, to work around a bug
where the window server snapshot API returns blank snapshots.

Re-landing after r156724, this should not break everything now.

Add a test that ensures that WebKitTestRunner's snapshots are not
completely blank with tiled drawing enabled.

* platform/mac-wk2/tiled-drawing/window-server-snapshots-work-expected-mismatch.html: Added.
* platform/mac-wk2/tiled-drawing/window-server-snapshots-work.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bf0819b0
2013-10-01 Tim Horton <timothy_horton@apple.com>
[wk2] WebKitTestRunner's window snapshots are blank with tiled drawing
https://bugs.webkit.org/show_bug.cgi?id=122006
<rdar://problem/15095197>
Reviewed by Dean Jackson.
Add a test that ensures that WebKitTestRunner's snapshots are not
completely blank with tiled drawing enabled.
* platform/mac-wk2/tiled-drawing/window-server-snapshots-work-expected-mismatch.html: Added.
* platform/mac-wk2/tiled-drawing/window-server-snapshots-work.html: Added.
2013-09-30 Jer Noble <jer.noble@apple.com>
[Mac] Add support for VideoTrack to MediaPlayerPrivateAVFObjC
<html>
<body style="background-color: black; color: white;">
If this test passes (if WebKitTestRunner's snapshots are working correctly with tiled drawing), it will not match the pure-white mismatch expectation.
</body>
</html>
2013-10-01 Tim Horton <timothy_horton@apple.com>
[wk2] WebKitTestRunner's window snapshots are blank with tiled drawing
https://bugs.webkit.org/show_bug.cgi?id=122006
<rdar://problem/15095197>
Reviewed by Dean Jackson.
* WebKitTestRunner/mac/PlatformWebViewMac.mm:
(WTR::PlatformWebView::PlatformWebView):
Layer-back the root view in WebKitTestRunner's window, to work around a bug
where the window server snapshot API returns blank snapshots.
Re-landing after r156724, this should not break everything now.
2013-10-01 Tim Horton <timothy_horton@apple.com>
[mac] 1x emulation on Retina hardware shouldn't use SPI
......
......@@ -136,6 +136,7 @@ PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGro
m_window.platformWebView = this;
[m_window setColorSpace:[[NSScreen mainScreen] colorSpace]];
[m_window setCollectionBehavior:NSWindowCollectionBehaviorStationary];
[[m_window contentView] setWantsLayer:YES];
[[m_window contentView] addSubview:m_view];
[m_window orderBack:nil];
[m_window setReleasedWhenClosed:NO];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment