2006-07-27 Eric Seidel <eric@eseidel.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jul 2006 18:07:35 +0000 (18:07 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jul 2006 18:07:35 +0000 (18:07 +0000)
commit13aaac319cc07bafb66206bac7ccbe68763f2f7e
tree917745bddcd34c1c8239cf0d95e567d787834d26
parenta22155bbd95f470510e93339c0d282a15d2bd3a0
2006-07-27  Eric Seidel  <eric@eseidel.com>

        Reviewed by darin.

        Add better SVGLoad event support.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=6010
        There will still need to be additional support added for <link> and <script> elements.
        Not all of the error -> loaded -> error transition cases work yet.

        * dom/EventTargetNode.cpp:
        (WebCore::EventTargetNode::dispatchGenericEvent):
        * html/HTMLImageLoader.cpp:
        (WebCore::HTMLImageLoader::dispatchLoadEvent):
        * html/HTMLImageLoader.h:
        (WebCore::HTMLImageLoader::haveFiredLoadEvent):
        (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
        * ksvg2/misc/SVGImageLoader.cpp:
        (WebCore::SVGImageLoader::SVGImageLoader):
        (WebCore::SVGImageLoader::dispatchLoadEvent):
        * ksvg2/misc/SVGImageLoader.h:
        * ksvg2/svg/SVGAElement.cpp:
        (WebCore::SVGAElement::parseMappedAttribute):
        * ksvg2/svg/SVGAnimatedBoolean.h:
        * ksvg2/svg/SVGElement.cpp:
        (WebCore::SVGElement::SVGElement):
        (WebCore::SVGElement::parseMappedAttribute):
        (WebCore::SVGElement::haveLoadedRequiredResources):
        (WebCore::SVGElement::sendSVGLoadEventIfPossible):
        (WebCore::SVGElement::closeRenderer):
        * ksvg2/svg/SVGElement.h:
        (WebCore::SVGElement::rendererIsNeeded):
        (WebCore::svg_dynamic_cast):
        * ksvg2/svg/SVGExternalResourcesRequired.h:
        * ksvg2/svg/SVGImageElement.cpp:
        (SVGImageElement::SVGImageElement):
        (SVGImageElement::haveLoadedRequiredResources):
        * ksvg2/svg/SVGImageElement.h:
        * ksvg2/svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::parseMappedAttribute):
        * ksvg2/svg/SVGScriptElement.cpp:
        (WebCore::SVGScriptElement::SVGScriptElement):
        (WebCore::SVGScriptElement::parseMappedAttribute):
        (WebCore::SVGScriptElement::executeScript):
        * xml/xmlhttprequest.cpp:
        (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
40 files changed:
LayoutTests/ChangeLog
LayoutTests/svg/W3C-SVG-1.1/extend-namespace-01-f-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/extend-namespace-01-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/extend-namespace-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-events-01-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/interact-events-01-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-01-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/struct-dom-01-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-dom-02-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/struct-dom-02-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-dom-03-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/struct-dom-03-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-03-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-dom-04-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/struct-dom-04-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-04-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-dom-05-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/struct-dom-05-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-05-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-dom-06-b-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-dom-06-b-expected.txt
WebCore/ChangeLog
WebCore/dom/EventTargetNode.cpp
WebCore/html/HTMLImageLoader.cpp
WebCore/html/HTMLImageLoader.h
WebCore/ksvg2/misc/SVGImageLoader.cpp
WebCore/ksvg2/misc/SVGImageLoader.h
WebCore/ksvg2/svg/SVGAElement.cpp
WebCore/ksvg2/svg/SVGAnimatedBoolean.h
WebCore/ksvg2/svg/SVGElement.cpp
WebCore/ksvg2/svg/SVGElement.h
WebCore/ksvg2/svg/SVGExternalResourcesRequired.h
WebCore/ksvg2/svg/SVGImageElement.cpp
WebCore/ksvg2/svg/SVGImageElement.h
WebCore/ksvg2/svg/SVGSVGElement.cpp
WebCore/ksvg2/svg/SVGScriptElement.cpp
WebCore/xml/xmlhttprequest.cpp