2007-10-03 Eric Seidel <eric@webkit.org>
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2007 15:07:33 +0000 (15:07 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2007 15:07:33 +0000 (15:07 +0000)
commite36763c8ea52e8d21803232002fb936f0718d90c
tree686ac03750e4f4cd7d5faa7590a658767180c006
parent815f0b05e95048277eca6b8228973a506c4074fd
2007-10-03  Eric Seidel  <eric@webkit.org>

        Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=12310
        Remove static variables from removeAllChildren causing crash.
        removeAllChildren now iterates over the entire tree instead of recursing.
        Also (according to Maciej) a possible 1-2% speedboost on HTML iBench.

        Test: fast/images/svg-background-crash-on-refresh.html

        * WebCore.xcodeproj/project.pbxproj:
        * dom/ContainerNode.cpp:
        (WebCore::addChildNodesToDeletionQueue):
        (WebCore::ContainerNode::removeAllChildren): use new addChildNodesToDeletionQueue

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/images/resources/butterfly.svg [new file with mode: 0644]
LayoutTests/fast/images/svg-background-crash-on-refresh.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/svg-as-image-expected.txt
LayoutTests/platform/mac/fast/images/svg-background-crash-on-refresh-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/svg-background-crash-on-refresh-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/svg-background-crash-on-refresh-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/ContainerNode.cpp
WebCore/dom/ContainerNode.h
WebCore/platform/graphics/ImageBuffer.cpp
WebCore/platform/graphics/svg/SVGImage.cpp