Reviewed by Darin.
authorzimmermann <zimmermann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Mar 2007 01:35:17 +0000 (01:35 +0000)
committerzimmermann <zimmermann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Mar 2007 01:35:17 +0000 (01:35 +0000)
commitcaa31a5465ccb73c7438d126e4fc34751a6ffdf1
tree56059b73dd0e2258f5c31e1ab046b639a1fa67c5
parent4c8e61503e46a789a873861393368b6f1df66be5
Reviewed by Darin.

Fix all (except one) known <use> bug. The remaining bug (12630) is not crucical at all.
Enable <use> again as default SVG feature, as discussed on webkit-dev.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=12936 (Master bug used to track all current use problems.)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=12926 (transform attribute not respected in nested <use> elements)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=12267 (getElementById broken for <use>)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=12916 (use instance in symbol definition does not work)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=12917 (mouseout event does not occur after scaling use instance)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=12838 (SVG <use> DOM broken for script)

Added test: svg/custom/use-nested-transform.svg
Added test: svg/custom/struct-use-09-b.svg (not yet official W3C-SVG-1.1 testcase)
Fixes test: svg/custom/use-elementInstance-event-target.svg (rectangle now turns green on first click)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
152 files changed:
LayoutTests/ChangeLog
LayoutTests/svg/W3C-SVG-1.1/animate-elem-30-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-30-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-36-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-36-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-39-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-39-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-40-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-40-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-41-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-41-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-46-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-46-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-61-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-61-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-63-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-63-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-64-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-64-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-65-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-65-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-66-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-66-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-67-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-67-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-68-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-68-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-69-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-69-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-70-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-70-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-77-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-77-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-78-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-78-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-80-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/animate-elem-80-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-gauss-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-morph-01-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-05-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-05-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-06-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/fonts-elem-06-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/fonts-kern-01-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/fonts-kern-01-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/pservers-grad-13-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-group-03-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-group-03-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-image-02-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-image-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-symbol-01-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-symbol-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-use-01-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-use-01-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-use-03-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-use-03-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-use-05-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-use-05-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-path-01-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/text-path-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-text-03-b-expected.png
LayoutTests/svg/W3C-SVG-1.1/text-text-04-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-text-05-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/text-text-05-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-text-06-t-expected.png
LayoutTests/svg/W3C-SVG-1.1/text-text-06-t-expected.txt
LayoutTests/svg/carto.net/button-expected.txt
LayoutTests/svg/carto.net/colourpicker-expected.txt
LayoutTests/svg/carto.net/slider-expected.txt
LayoutTests/svg/carto.net/window-expected.txt
LayoutTests/svg/custom/deep-dynamic-updates-expected.txt
LayoutTests/svg/custom/path-textPath-simulation-expected.png
LayoutTests/svg/custom/path-textPath-simulation-expected.txt
LayoutTests/svg/custom/pointer-events-image-expected.png
LayoutTests/svg/custom/pointer-events-path-expected.png
LayoutTests/svg/custom/pointer-events-text-expected.png
LayoutTests/svg/custom/struct-use-09-b-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/struct-use-09-b-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/struct-use-09-b-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/struct-use-09-b.svg [new file with mode: 0644]
LayoutTests/svg/custom/text-hit-test-expected.png
LayoutTests/svg/custom/use-clipped-hit-expected.png
LayoutTests/svg/custom/use-clipped-hit-expected.txt
LayoutTests/svg/custom/use-elementInstance-event-target-expected.png
LayoutTests/svg/custom/use-elementInstance-event-target-expected.txt
LayoutTests/svg/custom/use-elementInstance-methods-expected.png
LayoutTests/svg/custom/use-elementInstance-methods-expected.txt
LayoutTests/svg/custom/use-event-handler-on-referenced-element-expected.png
LayoutTests/svg/custom/use-event-handler-on-referenced-element-expected.txt
LayoutTests/svg/custom/use-event-handler-on-use-element-expected.png
LayoutTests/svg/custom/use-event-handler-on-use-element-expected.txt
LayoutTests/svg/custom/use-events-crash-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/use-events-crash-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/use-events-crash-expected.txt
LayoutTests/svg/custom/use-forward-refs-expected.txt
LayoutTests/svg/custom/use-instanceRoot-modifications-expected.png
LayoutTests/svg/custom/use-instanceRoot-modifications-expected.txt
LayoutTests/svg/custom/use-modify-container-in-target-expected.png
LayoutTests/svg/custom/use-modify-container-in-target-expected.txt
LayoutTests/svg/custom/use-modify-target-container-expected.png
LayoutTests/svg/custom/use-modify-target-container-expected.txt
LayoutTests/svg/custom/use-modify-target-symbol-expected.png
LayoutTests/svg/custom/use-modify-target-symbol-expected.txt
LayoutTests/svg/custom/use-modify-target-symbol.svg
LayoutTests/svg/custom/use-nested-transform-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/use-nested-transform-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/use-nested-transform-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/use-nested-transform.svg [new file with mode: 0755]
LayoutTests/svg/custom/use-on-g-containing-use-expected.png
LayoutTests/svg/custom/use-on-g-containing-use-expected.txt
LayoutTests/svg/custom/use-on-g-expected.png
LayoutTests/svg/custom/use-on-g-expected.txt
LayoutTests/svg/custom/use-on-rect-expected.png
LayoutTests/svg/custom/use-on-rect-expected.txt
LayoutTests/svg/custom/use-on-symbol-expected.png
LayoutTests/svg/custom/use-on-symbol-expected.txt
LayoutTests/svg/custom/use-on-symbol-inside-pattern-expected.png
LayoutTests/svg/custom/use-on-symbol-inside-pattern-expected.txt
LayoutTests/svg/custom/use-on-text-expected.png
LayoutTests/svg/custom/use-on-text-expected.txt
LayoutTests/svg/custom/use-on-use-expected.png
LayoutTests/svg/custom/use-on-use-expected.txt
LayoutTests/svg/custom/use-property-changes-through-dom-expected.png
LayoutTests/svg/custom/use-property-changes-through-dom-expected.txt
LayoutTests/svg/custom/use-property-changes-through-svg-dom-expected.txt
LayoutTests/svg/custom/use-recursion-1-expected.txt
LayoutTests/svg/custom/use-recursion-2-expected.txt
LayoutTests/svg/custom/use-recursion-3-expected.txt
LayoutTests/svg/custom/use-recursion-4-expected.txt
LayoutTests/svg/custom/use-symbol-overflow-expected.png
LayoutTests/svg/custom/use-symbol-overflow-expected.txt
LayoutTests/svg/custom/use-transform-expected.png
LayoutTests/svg/custom/use-transform-expected.txt
WebCore/ChangeLog
WebCore/bindings/js/JSSVGElementWrapperFactory.cpp
WebCore/bindings/js/kjs_dom.cpp
WebCore/bindings/objc/DOM.mm
WebCore/dom/Element.cpp
WebCore/ksvg2/svg/SVGElement.cpp
WebCore/ksvg2/svg/SVGElementInstance.cpp
WebCore/ksvg2/svg/SVGElementInstance.h
WebCore/ksvg2/svg/SVGElementInstance.idl
WebCore/ksvg2/svg/SVGElementInstanceList.cpp
WebCore/ksvg2/svg/SVGElementInstanceList.h
WebCore/ksvg2/svg/SVGElementInstanceList.idl
WebCore/ksvg2/svg/SVGStyledElement.cpp
WebCore/ksvg2/svg/SVGStyledElement.h
WebCore/ksvg2/svg/SVGUseElement.cpp
WebCore/ksvg2/svg/SVGUseElement.h
WebCore/ksvg2/svg/SVGUseElement.idl
WebCore/ksvg2/svg/svgtags.in