2006-07-27 Eric Seidel <eric@eseidel.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jul 2006 05:26:00 +0000 (05:26 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jul 2006 05:26:00 +0000 (05:26 +0000)
commitf931d06812eda507b7dcc157017d906d8806613e
tree723021017dd7c893a2324e143ed686576a80d7fc
parentd18a257cd6fe4a670b61e9533755e153b45ece66
2006-07-27  Eric Seidel  <eric@eseidel.com>

        Reviewed by ap.

        Enables getSVGDocument() support for HTMLObjectElement and HTMLEmbedElement
        This patch does not try to autogenerate anything, but enables the SVG functionality.
        Also fix HTMLObjectElement vspace and hspace to be numbers instead of strings to match IE & Firefox.

        * bindings/js/kjs_dom.cpp:
        (KJS::toJS):
        * bindings/js/kjs_html.cpp:
        (KJS::JSHTMLElement::objectGetter):
        (KJS::HTMLElementFunction::callAsFunction):
        (KJS::JSHTMLElement::objectSetter):
        * bindings/js/kjs_html.h:
        (KJS::JSHTMLElement::):
        * dom/Document.h:
        (WebCore::Document::isSVGDocument):
        * html/HTMLEmbedElement.cpp:
        (WebCore::HTMLEmbedElement::contentDocument):
        (WebCore::HTMLEmbedElement::getSVGDocument):
        * html/HTMLEmbedElement.h:
        * html/HTMLObjectElement.cpp:
        (WebCore::HTMLObjectElement::HTMLObjectElement):
        (WebCore::HTMLObjectElement::getInstance):
        (WebCore::HTMLObjectElement::parseMappedAttribute):
        (WebCore::HTMLObjectElement::contentDocument):
        (WebCore::HTMLObjectElement::rendererIsNeeded):
        (WebCore::HTMLObjectElement::createRenderer):
        (WebCore::HTMLObjectElement::setCode):
        (WebCore::HTMLObjectElement::setArchive):
        (WebCore::HTMLObjectElement::setBorder):
        (WebCore::HTMLObjectElement::setCodeBase):
        (WebCore::HTMLObjectElement::setCodeType):
        (WebCore::HTMLObjectElement::setData):
        (WebCore::HTMLObjectElement::hspace):
        (WebCore::HTMLObjectElement::setHspace):
        (WebCore::HTMLObjectElement::setStandby):
        (WebCore::HTMLObjectElement::setType):
        (WebCore::HTMLObjectElement::setUseMap):
        (WebCore::HTMLObjectElement::vspace):
        (WebCore::HTMLObjectElement::setVspace):
        (WebCore::HTMLObjectElement::getSVGDocument):
        * html/HTMLObjectElement.h:
        * ksvg2/svg/SVGDocument.h:
        (WebCore::SVGDocument::isSVGDocument):
        * rendering/RenderWidget.h:
        (WebCore::RenderWidget::frameView):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/svg/level3/xpath/Conformance_ID-expected.checksum [new file with mode: 0644]
LayoutTests/dom/svg/level3/xpath/Conformance_ID-expected.png [new file with mode: 0644]
LayoutTests/fast/dom/HTMLObjectElement/vspace-hspace-as-number-expected.checksum [new file with mode: 0644]
LayoutTests/fast/dom/HTMLObjectElement/vspace-hspace-as-number-expected.png [new file with mode: 0644]
LayoutTests/fast/dom/HTMLObjectElement/vspace-hspace-as-number-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/HTMLObjectElement/vspace-hspace-as-number.html [new file with mode: 0644]
LayoutTests/fast/dynamic/move-node-with-selection-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/getsvgdocument-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/getsvgdocument-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/getsvgdocument-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/getsvgdocument.html [new file with mode: 0644]
LayoutTests/svg/custom/resources/getsvgdocument.svg [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_dom.cpp
WebCore/bindings/js/kjs_html.cpp
WebCore/bindings/js/kjs_html.h
WebCore/dom/Document.h
WebCore/html/HTMLEmbedElement.cpp
WebCore/html/HTMLEmbedElement.h
WebCore/html/HTMLObjectElement.cpp
WebCore/html/HTMLObjectElement.h
WebCore/ksvg2/svg/SVGDocument.h