Changeset 103760 in webkit


Ignore:
Timestamp:
Dec 28, 2011 4:04:28 AM (12 years ago)
Author:
kbalazs@webkit.org
Message:

[Qt][WK2] Crash in ~WebGraphicsLayer when running fast/multicol/pagination-* tests
https://bugs.webkit.org/show_bug.cgi?id=75000

Reviewed by Noam Rosenthal.

Don't adopt a tile client that belongs to a parent layer.
This is unnecessary and also unsafe because we can live
through that client.

  • WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:

(WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r103755 r103760  
     12011-12-28  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        [Qt][WK2] Crash in ~WebGraphicsLayer when running fast/multicol/pagination-* tests
     4        https://bugs.webkit.org/show_bug.cgi?id=75000
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Don't adopt a tile client that belongs to a parent layer.
     9        This is unnecessary and also unsafe because we can live
     10        through that client.
     11
     12        * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
     13        (WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
     14
    1152011-12-27  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp

    r102457 r103760  
    402402void WebGraphicsLayer::syncCompositingStateForThisLayerOnly()
    403403{
    404     if (!m_layerTreeTileClient)
    405         m_layerTreeTileClient = layerTreeTileClient();
    406404    updateContentBuffers();
    407405
     
    434432        m_layerInfo.children.append(toWebLayerID(children()[i]));
    435433
     434    WebLayerTreeTileClient* tileClient = layerTreeTileClient();
     435    ASSERT(tileClient);
    436436    if (m_layerInfo.imageIsUpdated && m_image && !m_layerInfo.imageBackingStoreID)
    437         m_layerInfo.imageBackingStoreID = layerTreeTileClient()->adoptImageBackingStore(m_image.get());
    438 
    439     m_layerTreeTileClient->didSyncCompositingStateForLayer(m_layerInfo);
     437        m_layerInfo.imageBackingStoreID = tileClient->adoptImageBackingStore(m_image.get());
     438
     439    tileClient->didSyncCompositingStateForLayer(m_layerInfo);
    440440    m_modified = false;
    441441    m_layerInfo.imageIsUpdated = false;
Note: See TracChangeset for help on using the changeset viewer.