This website requires JavaScript.
Explore
Help
Sign In
nephele
/
haikuwebkit
Watch
1
Star
0
Fork
You've already forked haikuwebkit
0
Code
Issues
Releases
Activity
haiku
haikuwebkit
/
LayoutTests
/
svg
/
custom
/
use-invalidate-click-crash-...
2 lines
5 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Invalidated SVG shadow tree should be always detached. https://bugs.webkit.org/show_bug.cgi?id=107634 Reviewed by Ryosuke Niwa. Source/WebCore: SVGUseElement::clearResourceReferences() uses removeAllChildren() for clearing its shadow DOM, but this is wrong. removeAllChildren() is designed for removing children of an out-of-document Node. For efficiency, it skips a series of cleanup sequences like detach(). For removing SVG shadow tree which is in Document, removeChildren() should be used. It does proper cleanup for the chilren. Test: svg/custom/use-invalidate-click-crash.xhtml * svg/SVGUseElement.cpp: (WebCore::SVGUseElement::clearResourceReferences): LayoutTests: * svg/custom/use-invalidate-click-crash-expected.txt: Added. * svg/custom/use-invalidate-click-crash.xhtml: Added. Canonical link: https://commits.webkit.org/125864@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-23 08:37:56 +00:00
PASS