Changeset 112289 in webkit


Ignore:
Timestamp:
Mar 27, 2012 11:42:02 AM (12 years ago)
Author:
andersca@apple.com
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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r112273 r112289  
     12012-03-27  Anders Carlsson  <andersca@apple.com>
     2
     3        Don't update the layer hosting state unless the WKView is added to a window
     4        https://bugs.webkit.org/show_bug.cgi?id=82359
     5
     6        Reviewed by Sam Weinig.
     7
     8        This avoids thrashing the layer hosting state when switching tabs.
     9
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::viewStateDidChange):
     12
    1132012-03-27  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r112265 r112289  
    779779        }
    780780
    781         LayerHostingMode layerHostingMode = m_pageClient->viewLayerHostingMode();
    782         if (m_layerHostingMode != layerHostingMode) {
    783             m_layerHostingMode = layerHostingMode;
    784             m_drawingArea->layerHostingModeDidChange();
     781        if (isInWindow) {
     782            LayerHostingMode layerHostingMode = m_pageClient->viewLayerHostingMode();
     783            if (m_layerHostingMode != layerHostingMode) {
     784                m_layerHostingMode = layerHostingMode;
     785                m_drawingArea->layerHostingModeDidChange();
     786            }
    785787        }
    786788    }
Note: See TracChangeset for help on using the changeset viewer.