Title: [185068] trunk/Source/WebKit2
- Revision
- 185068
- Author
- [email protected]
- Date
- 2015-06-01 11:40:57 -0700 (Mon, 01 Jun 2015)
Log Message
PDFs always think they're visible on iOS.
https://bugs.webkit.org/show_bug.cgi?id=145493
<rdar://problem/19668879>
Unreviewed roll-out.
Temporarily reverting this change – will need a workaround for test harness craziness.
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView didMoveToWindow]):
(-[WKWebView setOpaque:]):
* UIProcess/ios/WKContentView.mm:
(-[WKContentView willMoveToWindow:]):
(-[WKContentView didMoveToWindow]):
(-[WKContentView browsingContextController]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (185067 => 185068)
--- trunk/Source/WebKit2/ChangeLog 2015-06-01 18:40:30 UTC (rev 185067)
+++ trunk/Source/WebKit2/ChangeLog 2015-06-01 18:40:57 UTC (rev 185068)
@@ -1,3 +1,21 @@
+2015-06-01 Gavin Barraclough <[email protected]>
+
+ PDFs always think they're visible on iOS.
+ https://bugs.webkit.org/show_bug.cgi?id=145493
+ <rdar://problem/19668879>
+
+ Unreviewed roll-out.
+
+ Temporarily reverting this change – will need a workaround for test harness craziness.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView didMoveToWindow]):
+ (-[WKWebView setOpaque:]):
+ * UIProcess/ios/WKContentView.mm:
+ (-[WKContentView willMoveToWindow:]):
+ (-[WKContentView didMoveToWindow]):
+ (-[WKContentView browsingContextController]):
+
2015-06-01 Csaba Osztrogonác <[email protected]>
[EFL] Remove unused const variable from EwkView.cpp
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (185067 => 185068)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2015-06-01 18:40:30 UTC (rev 185067)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2015-06-01 18:40:57 UTC (rev 185068)
@@ -1320,7 +1320,7 @@
- (void)didMoveToWindow
{
- _page->viewStateDidChange(WebCore::ViewState::AllFlags);
+ _page->viewStateDidChange(WebCore::ViewState::IsInWindow);
}
- (void)setOpaque:(BOOL)opaque
Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm (185067 => 185068)
--- trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm 2015-06-01 18:40:30 UTC (rev 185067)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm 2015-06-01 18:40:57 UTC (rev 185068)
@@ -281,11 +281,16 @@
if (_webView._allowsLinkPreview)
[self _registerPreviewInWindow:newWindow];
#endif
-
- [self _updateForScreen:newWindow.screen];
}
}
+- (void)didMoveToWindow
+{
+ if (self.window)
+ [self _updateForScreen:self.window.screen];
+ _page->viewStateDidChange(ViewState::AllFlags);
+}
+
- (WKBrowsingContextController *)browsingContextController
{
if (!_browsingContextController)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes