Skip to content
  • commit-queue@webkit.org's avatar
    [chromium] Renderer crashes when about:gpucrash is loaded · c971ce30
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=66814
    
    Source/WebCore:
    
    WebViewImpl::didRecreateGraphicsContext() was calling
    setRootLayer() on the CC layer tree, but the root layer
    doesn't actually change and the code wasn't defensive
    against this. This CL adds some asserts to catch tree
    corruption and removes the unnecessary calls.
    
    Patch by Iain Merrick <husky@google.com> on 2011-08-23
    Reviewed by James Robinson.
    
    * platform/graphics/GraphicsLayer.cpp:
    (WebCore::GraphicsLayer::setParent):
    * platform/graphics/GraphicsLayer.h:
    * platform/graphics/chromium/LayerChromium.cpp:
    (WebCore::LayerChromium::setParent):
    (WebCore::LayerChromium::hasAncestor):
    * platform/graphics/chromium/LayerChromium.h:
    
    Source/WebKit/chromium:
    
    WebViewImpl::didRecreateGraphicsContext() was calling
    setRootLayer() on the CC layer tree, but the root layer
    doesn't actually change and the code wasn't defensive
    against this. This CL adds some asserts to catch tree
    corruption and removes the unnecessary calls.
    
    Patch by Iain Merrick <husky@google.com> on 2011-08-23
    Reviewed by James Robinson.
    
    * src/WebViewImpl.cpp:
    (WebKit::WebViewImpl::didRecreateGraphicsContext):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c971ce30