Title: [152187] trunk/Source/WebKit2
- Revision
- 152187
- Author
- [email protected]
- Date
- 2013-06-28 13:40:43 -0700 (Fri, 28 Jun 2013)
Log Message
Stale occlusion state after moving page back into window
https://bugs.webkit.org/show_bug.cgi?id=118202
Reviewed by Anders Carlsson.
We need to update the occlusion state when the page goes back into the window.
* UIProcess/API/mac/WKView.mm:
(-[WKView viewDidMoveToWindow]):
- update occlusion state.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (152186 => 152187)
--- trunk/Source/WebKit2/ChangeLog 2013-06-28 20:38:55 UTC (rev 152186)
+++ trunk/Source/WebKit2/ChangeLog 2013-06-28 20:40:43 UTC (rev 152187)
@@ -1,3 +1,16 @@
+2013-06-28 Gavin Barraclough <[email protected]>
+
+ Stale occlusion state after moving page back into window
+ https://bugs.webkit.org/show_bug.cgi?id=118202
+
+ Reviewed by Anders Carlsson.
+
+ We need to update the occlusion state when the page goes back into the window.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView viewDidMoveToWindow]):
+ - update occlusion state.
+
2013-06-28 Gwang Yoon Hwang <[email protected]>
Coordinated Graphics: Separate CoordinatedLayerTreeHost into CoordinatedLayerTreeHost and CompositingCoordinator
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (152186 => 152187)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2013-06-28 20:38:55 UTC (rev 152186)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2013-06-28 20:40:43 UTC (rev 152187)
@@ -1980,6 +1980,10 @@
// update the active state first and then make it visible. If the view is about to be hidden, we hide it first and then
// update the active state.
if ([self window]) {
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
+ if (_data->_windowOcclusionDetectionEnabled)
+ [self _setIsWindowOccluded:([[self window] occlusionState] & NSWindowOcclusionStateVisible) != NSWindowOcclusionStateVisible];
+#endif
_data->_windowHasValidBackingStore = NO;
[self doWindowDidChangeScreen];
[self _updateWindowVisibility];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes