haikuwebkit/LayoutTests/svg/dom/SVGStyledElement-pendingRes...

2 lines
74 B
Plaintext
Raw Permalink Normal View History

Source/WebCore: Crash due to bad data in SVGDocumentExtensions m_pendingResources https://bugs.webkit.org/show_bug.cgi?id=67488 Patch by Ken Buchanan <kenrb@chromium.org> on 2011-09-10 Reviewed by Nikolas Zimmermann. Resolving a crash condition caused by the deletion of elements while pending resource entries for those elements are still recorded. * rendering/svg/RenderSVGResourceContainer.cpp: (WebCore::RenderSVGResourceContainer::registerResource) * svg/SVGDocumentExtensions.h: (WebCore::SVGDocumentExtensions::isElementInPendingResources) * svg/SVGDocumentExtensions.cpp: (WebCore::SVGDocumentExtensions::addPendingResource) (WebCore::SVGDocumentExtensions::isElementInPendingResources) (WebCore::SVGDocumentExtensions::removeElementFromPendingResources) * svg/SVGStyledElement.h: (WebCore::SVGStyledElement::clearHasPendingResourcesIfPossible) * svg/SVGStyledElement.cpp: (WebCore::SVGStyledElement::buildPendingResourcesIfNeeded) (WebCore::SVGStyledElement::clearHasPendingResourcesIfPossible) * svg/SVGUseElement.cpp: (WebCore::SVGUseElement::svgAttributeChanged) LayoutTests: Crash due to bad data in SVGDocumentExtensions m_pendingResources. https://bugs.webkit.org/show_bug.cgi?id=67488 Patch by Ken Buchanan <kenrb@chromium.org> on 2011-09-10 Reviewed by Nikolas Zimmermann. Test added: validating that the crash referenced in the bug is not present. * svg/dom/SVGStyledElement-pendingResource-crash.html: Added. * svg/dom/SVGStyledElement-pendingResource-crash-expected.txt: Added. * svg/dom/resources/SVGStyledElement-pendingResource-crash.svg: Added. Canonical link: https://commits.webkit.org/83791@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@94905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-09-10 11:25:03 +00:00
PASS, if DumpRenderTree doesn't crash, and no assertion in a Debug build.