Changeset 106287 in webkit


Ignore:
Timestamp:
Jan 30, 2012 2:01:42 PM (12 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

[Qt] Disconnect the LayerTreeHost from layers when they get removed from their parent.
https://bugs.webkit.org/show_bug.cgi?id=77362

Reviewed by Noam Rosenthal.

This fixes crashes seen in layout tests under certain timing circumstances
that appeared after r106109 was landed.

  • WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:

(WebCore::WebGraphicsLayer::replaceChild):
(WebCore::WebGraphicsLayer::removeFromParent):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r106271 r106287  
     12012-01-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        [Qt] Disconnect the LayerTreeHost from layers when they get removed from their parent.
     4        https://bugs.webkit.org/show_bug.cgi?id=77362
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        This fixes crashes seen in layout tests under certain timing circumstances
     9        that appeared after r106109 was landed.
     10
     11        * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
     12        (WebCore::WebGraphicsLayer::replaceChild):
     13        (WebCore::WebGraphicsLayer::removeFromParent):
     14
    1152012-01-30  Beth Dakin  <bdakin@apple.com>
    216
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp

    r105934 r106287  
    163163    notifyChange();
    164164    toWebGraphicsLayer(oldChild)->notifyChange();
     165    toWebGraphicsLayer(oldChild)->setLayerTreeTileClient(0);
    165166    toWebGraphicsLayer(newChild)->setVisibleContentRectAndScale(m_pageVisibleRect, m_contentsScale);
    166167    toWebGraphicsLayer(newChild)->notifyChange();
     
    175176
    176177    notifyChange();
     178    setLayerTreeTileClient(0);
    177179}
    178180
Note: See TracChangeset for help on using the changeset viewer.