• inferno@chromium.org's avatar
    2011-05-12 Carol Szabo <carol@webkit.org> · a0b824e8
    inferno@chromium.org authored
            Reviewed by David Hyatt.
    
            Fix reparenting and destruction of counter nodes. 
            https://bugs.webkit.org/show_bug.cgi?id=57929
    
            Fixed several issues related to not met assertions.
            See below in the per file description.
    
            Test: fast/css/counters/element-removal-crash.xhtml
    
            * dom/ContainerNode.cpp:
            (WebCore::ContainerNode::removeChildren):
            Fixed the fact that Node::detach() used to be called
            while the DOM tree was in an inconsistent state.
            * rendering/RenderCounter.cpp:
            (WebCore::RenderCounter::rendererRemovedFromTree):
            Introduced this function to remove counters from
            descendents of renderers removed from the renderer
            tree not only from the removed renderers themselves.
            * rendering/RenderCounter.h:
            * rendering/RenderObjectChildList.cpp:
            (WebCore::RenderObjectChildList::removeChildNode):
            Changed to call RenderCounter::rendererRemovedFromTree
            instead of RenderCounter::destroyCounters.
    2011-05-08 Abhishek Arya <inferno@chromium.org> and Carol Szabo  <carol@webkit.org>
    
            Reviewed by David Hyatt.
    
            Fix reparenting and destruction of counter nodes.
            https://bugs.webkit.org/show_bug.cgi?id=57929
    
            * fast/css/counters/element-removal-crash-expected.txt: Added.
            * fast/css/counters/element-removal-crash.xhtml: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a0b824e8
RenderCounter.cpp 28.7 KB