2006-08-14 Eric Seidel <eric@eseidel.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Aug 2006 06:12:39 +0000 (06:12 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Aug 2006 06:12:39 +0000 (06:12 +0000)
commitc0820f96d12c18aee7e2aaf75264483ceed1e4eb
treeba5995d3cfb89716ded2490d8ec3237c3595c3b0
parent54588cab1f4fe4b878767012c04df8b2ec9bc1b4
2006-08-14  Eric Seidel  <eric@eseidel.com>

        Reviewed by darin and mjs.

        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@15870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
42 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/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/SVGElement.cpp
WebCore/ksvg2/svg/SVGElement.h
WebCore/ksvg2/svg/SVGExternalResourcesRequired.h
WebCore/ksvg2/svg/SVGFitToViewBox.cpp
WebCore/ksvg2/svg/SVGImageElement.cpp
WebCore/ksvg2/svg/SVGImageElement.h
WebCore/ksvg2/svg/SVGSVGElement.cpp
WebCore/ksvg2/svg/SVGScriptElement.cpp
WebCore/page/Frame.cpp
WebCore/platform/BitmapImage.cpp [new file with mode: 0644]
WebCore/platform/BitmapImage.h [new file with mode: 0644]
WebCore/platform/mac/BitmapImageMac.mm [new file with mode: 0644]
WebCore/xml/xmlhttprequest.cpp