Fixes: http://bugs.webkit.org/show_bug.cgi?id=5940 (<svg> inside <body> incorrectly...
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2007 13:06:16 +0000 (13:06 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2007 13:06:16 +0000 (13:06 +0000)
commitebd8d57e1f3e8a20927a0701c5ed450e3eaa5925
tree1aaddefd6e0a30da88823594e88301d2b43f195a
parent709cdd305b4c63767f1560dba7f9e93b6562faad
Fixes: bugs.webkit.org/show_bug.cgi?id=5940 (<svg> inside <body> incorrectly extends over top/bottom borders)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=14145 (RenderSVGContainer should not inherit from RenderContainer)
Make RenderSVGContainer inherit from RenderObject directly, instead of RenderContainer.
Itdoes a lot of things that we don't need for SVG, and by removing this inheritance
we can finally fix the differences about SVG object positioning, as we don't need
parent translation (tx/ty). Fixes SVG text rendering within XHTML.

Fix requireLayer() function on RenderSVGRoot, as it can actually be a layer now.
This change is based on Rob's patch at 5940 - fixing z-order indexing.

Change RenderSVGRoot renderName() and update all layout tests, because of this change.

Fix absoluteRects() function for RenderSVGInlineText & RenderSVGTSpan.
Checked extensively using WebInspector, to assure all rects are correctly displayed.

Testcases fixed: junk-data.svg, missing-xlink.svg hixie/013.xml (all regressions!)
(junk-data.svg & missing-xlink.svg previously relied on SVG text painting out of <svg> overflow rect.
 Fix these testcases, as within this new RenderSVGContainer concept, that bug is now fixed, and breaks them)

Testcases added: custom/absolute-sized-svg-in-xhtml.xhtml, custom/inline-svg-in-xhtml.xml (Mozilla XTech demo)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
85 files changed:
LayoutTests/ChangeLog
LayoutTests/svg/batik/text/longTextOnPath-expected.txt
LayoutTests/svg/batik/text/textAnchor-expected.txt
LayoutTests/svg/batik/text/textAnchor2-expected.txt
LayoutTests/svg/batik/text/textAnchor3-expected.txt
LayoutTests/svg/batik/text/textBiDi-expected.txt
LayoutTests/svg/batik/text/textDecoration2-expected.txt
LayoutTests/svg/batik/text/textEffect-expected.txt
LayoutTests/svg/batik/text/textEffect2-expected.txt
LayoutTests/svg/batik/text/textEffect3-expected.txt
LayoutTests/svg/batik/text/textFeatures-expected.txt
LayoutTests/svg/batik/text/textGlyphOrientationHorizontal-expected.txt
LayoutTests/svg/batik/text/textLayout-expected.txt
LayoutTests/svg/batik/text/textLayout2-expected.txt
LayoutTests/svg/batik/text/textOnPath-expected.txt
LayoutTests/svg/batik/text/textOnPath2-expected.txt
LayoutTests/svg/batik/text/textOnPath3-expected.txt
LayoutTests/svg/batik/text/textOnPathSpaces-expected.txt
LayoutTests/svg/batik/text/textPCDATA-expected.txt
LayoutTests/svg/batik/text/textPosition-expected.txt
LayoutTests/svg/batik/text/textPosition2-expected.txt
LayoutTests/svg/batik/text/textProperties-expected.txt
LayoutTests/svg/batik/text/textProperties2-expected.txt
LayoutTests/svg/batik/text/textStyles-expected.txt
LayoutTests/svg/batik/text/verticalText-expected.txt
LayoutTests/svg/batik/text/verticalTextOnPath-expected.txt
LayoutTests/svg/batik/text/xmlSpace-expected.txt
LayoutTests/svg/custom/SVGMatrix-interface-expected.txt
LayoutTests/svg/custom/absolute-sized-svg-in-xhtml-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/absolute-sized-svg-in-xhtml-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/absolute-sized-svg-in-xhtml-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/absolute-sized-svg-in-xhtml.xhtml [new file with mode: 0644]
LayoutTests/svg/custom/fill-SVGPaint-interface-expected.txt
LayoutTests/svg/custom/fill-fallback-expected.txt
LayoutTests/svg/custom/focus-ring-expected.checksum
LayoutTests/svg/custom/focus-ring-expected.png
LayoutTests/svg/custom/focus-ring-expected.txt
LayoutTests/svg/custom/focus-ring.svg
LayoutTests/svg/custom/getPresentationAttribute-expected.txt
LayoutTests/svg/custom/gradient-rotated-bbox-expected.txt
LayoutTests/svg/custom/hit-test-unclosed-subpaths-expected.txt
LayoutTests/svg/custom/hit-test-with-br-expected.txt
LayoutTests/svg/custom/image-parent-translation-expected.txt
LayoutTests/svg/custom/image-small-width-height-expected.checksum
LayoutTests/svg/custom/image-small-width-height-expected.txt
LayoutTests/svg/custom/image-with-transform-clip-filter.svg
LayoutTests/svg/custom/inline-svg-in-xhtml-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/inline-svg-in-xhtml-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/inline-svg-in-xhtml-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/inline-svg-in-xhtml.xml [new file with mode: 0644]
LayoutTests/svg/custom/js-update-transform-addition-expected.txt
LayoutTests/svg/custom/js-update-transform-changes-expected.txt
LayoutTests/svg/custom/junk-data.svg
LayoutTests/svg/custom/missing-xlink.svg
LayoutTests/svg/custom/percentage-of-html-parent-expected.txt
LayoutTests/svg/custom/scroll-hit-test-expected.txt
LayoutTests/svg/custom/stroke-fallback-expected.txt
LayoutTests/svg/custom/text-letter-spacing-expected.txt
LayoutTests/svg/custom/text-x-dx-lists-expected.txt
LayoutTests/svg/custom/text-x-override-in-tspan-child-expected.txt
LayoutTests/svg/custom/use-on-disallowed-foreign-object-1-expected.txt
LayoutTests/svg/custom/use-on-disallowed-foreign-object-2-expected.txt
LayoutTests/svg/custom/use-on-disallowed-foreign-object-3-expected.txt
LayoutTests/svg/custom/use-on-disallowed-foreign-object-4-expected.txt
LayoutTests/svg/custom/use-on-non-svg-namespaced-element-expected.txt
LayoutTests/svg/hixie/error/013-expected.txt
WebCore/ChangeLog
WebCore/ksvg2/svg/SVGSVGElement.cpp
WebCore/rendering/RenderObject.cpp
WebCore/rendering/RenderObject.h
WebCore/rendering/RenderPath.cpp
WebCore/rendering/RenderSVGContainer.cpp
WebCore/rendering/RenderSVGContainer.h
WebCore/rendering/RenderSVGHiddenContainer.cpp
WebCore/rendering/RenderSVGHiddenContainer.h
WebCore/rendering/RenderSVGImage.cpp
WebCore/rendering/RenderSVGInline.cpp
WebCore/rendering/RenderSVGInlineText.cpp
WebCore/rendering/RenderSVGRoot.cpp
WebCore/rendering/RenderSVGRoot.h
WebCore/rendering/RenderSVGTSpan.cpp
WebCore/rendering/RenderSVGTextPath.cpp
WebCore/rendering/RenderTreeAsText.cpp
WebCore/rendering/SVGRenderTreeAsText.cpp
WebCore/rendering/SVGRenderTreeAsText.h