Title: [112289] trunk/Source/WebKit2
- Revision
- 112289
- Author
- [email protected]
- Date
- 2012-03-27 11:42:02 -0700 (Tue, 27 Mar 2012)
Log Message
Don't update the layer hosting state unless the WKView is added to a window
https://bugs.webkit.org/show_bug.cgi?id=82359
Reviewed by Sam Weinig.
This avoids thrashing the layer hosting state when switching tabs.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::viewStateDidChange):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (112288 => 112289)
--- trunk/Source/WebKit2/ChangeLog 2012-03-27 18:41:01 UTC (rev 112288)
+++ trunk/Source/WebKit2/ChangeLog 2012-03-27 18:42:02 UTC (rev 112289)
@@ -1,3 +1,15 @@
+2012-03-27 Anders Carlsson <[email protected]>
+
+ Don't update the layer hosting state unless the WKView is added to a window
+ https://bugs.webkit.org/show_bug.cgi?id=82359
+
+ Reviewed by Sam Weinig.
+
+ This avoids thrashing the layer hosting state when switching tabs.
+
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::viewStateDidChange):
+
2012-03-27 Carlos Garcia Campos <[email protected]>
Implement WebFrameNetworkingContext for soup in WebKit2
Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (112288 => 112289)
--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp 2012-03-27 18:41:01 UTC (rev 112288)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp 2012-03-27 18:42:02 UTC (rev 112289)
@@ -778,10 +778,12 @@
process()->send(Messages::WebPage::SetIsInWindow(isInWindow), m_pageID);
}
- LayerHostingMode layerHostingMode = m_pageClient->viewLayerHostingMode();
- if (m_layerHostingMode != layerHostingMode) {
- m_layerHostingMode = layerHostingMode;
- m_drawingArea->layerHostingModeDidChange();
+ if (isInWindow) {
+ LayerHostingMode layerHostingMode = m_pageClient->viewLayerHostingMode();
+ if (m_layerHostingMode != layerHostingMode) {
+ m_layerHostingMode = layerHostingMode;
+ m_drawingArea->layerHostingModeDidChange();
+ }
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes