Skip to content
  • jschuh@chromium.org's avatar
    2010-09-06 Justin Schuh <jschuh@chromium.org> · 32370f5c
    jschuh@chromium.org authored
            Reviewed by Nikolas Zimmermann.
    
            Make SVG PendingResources use RefPtr
            https://bugs.webkit.org/show_bug.cgi?id=43587
    
            Convert SVGDocumentExtensions::m_pendingResources to use a RefPtr for 
            pending elements instead of a raw pointer so that pending elements can't
            be freed prematurely.
    
            Test: svg/custom/use-invalid-pattern.svg
    
            * rendering/RenderSVGResourceContainer.cpp:
            (WebCore::RenderSVGResourceContainer::registerResource):
            * svg/SVGDocumentExtensions.cpp:
            (WebCore::SVGDocumentExtensions::addPendingResource):
            (WebCore::SVGDocumentExtensions::removePendingResource):
            * svg/SVGDocumentExtensions.h:
            * svg/SVGElement.cpp:
            (WebCore::SVGElement::insertedIntoDocument):
    2010-09-06  Justin Schuh  <jschuh@chromium.org>
    
            Reviewed by Nikolas Zimmermann.
    
            Test that an invalid pending resource pattern doesn't crash
            https://bugs.webkit.org/show_bug.cgi?id=43587
    
            * platform/mac-snowleopard/svg: Added.
            * platform/mac-snowleopard/svg/custom: Added.
            * platform/mac-snowleopard/svg/custom/use-invalid-pattern-expected.txt: Added.
            * svg/custom/use-invalid-pattern.svg: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    32370f5c