Changeset 164769 in webkit


Ignore:
Timestamp:
Feb 26, 2014 6:16:43 PM (10 years ago)
Author:
Simon Fraser
Message:

Fix two assertions/crashes in compositing code
https://bugs.webkit.org/show_bug.cgi?id=129414

Reviewed by Dean Jackson.

Fix two issues introduced in r164759.

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::removeFromScrollCoordinatedLayers): Don't call
ourselves recursively!
(WebCore::RenderLayerCompositor::detachScrollCoordinatedLayer): We call this
function unconditionally on layer teardown, so this assertion is bogus.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r164767 r164769  
     12014-02-26  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix two assertions/crashes in compositing code
     4        https://bugs.webkit.org/show_bug.cgi?id=129414
     5
     6        Reviewed by Dean Jackson.
     7
     8        Fix two issues introduced in r164759.
     9
     10        * rendering/RenderLayerCompositor.cpp:
     11        (WebCore::RenderLayerCompositor::removeFromScrollCoordinatedLayers): Don't call
     12        ourselves recursively!
     13        (WebCore::RenderLayerCompositor::detachScrollCoordinatedLayer): We call this
     14        function unconditionally on layer teardown, so this assertion is bogus.
     15
    1162014-02-26  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r164759 r164769  
    33723372        return;
    33733373
    3374     removeFromScrollCoordinatedLayers(layer);
    33753374    m_scrollCoordinatedLayers.remove(&layer);
    33763375    m_scrollCoordinatedLayersNeedingUpdate.remove(&layer);
     
    35343533void RenderLayerCompositor::detachScrollCoordinatedLayer(RenderLayer& layer)
    35353534{
    3536     ASSERT(m_scrollCoordinatedLayers.contains(&layer));
    3537 
    35383535    if (RenderLayerBacking* backing = layer.backing())
    35393536        backing->detachFromScrollingCoordinator();
Note: See TracChangeset for help on using the changeset viewer.