Reviewed by Oliver.
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2007 13:32:37 +0000 (13:32 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2007 13:32:37 +0000 (13:32 +0000)
commit6d8409e915c6ac3f6f46a631473d667d227e5108
treea3ad309c7d843c317f9318f3dd844a28ab439789
parenta0da7c964dc95db68f5a093eec7ffee568c48572
Reviewed by Oliver.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=14896 (SVG InlineText/Flow box sizes don't take rotated glyphs into account)
Introduce new helper function calculateGlyphBoundaries, which takes into account any per-character transformation.
This fixes box size calculations in svg/W3C-SVG-1.1/text-text-07-t.svg, svg/batik/text/textEffect3.svg (rotated glyphs)
-> These strings can be properly selected now, just as well as text path elements.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
44 files changed:
LayoutTests/ChangeLog
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.checksum
LayoutTests/svg/batik/text/textEffect-expected.png
LayoutTests/svg/batik/text/textEffect-expected.txt
LayoutTests/svg/batik/text/textEffect2-expected.txt
LayoutTests/svg/batik/text/textEffect3-expected.checksum
LayoutTests/svg/batik/text/textEffect3-expected.png
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/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/text/text-align-01-b-expected.txt
LayoutTests/svg/text/text-align-02-b-expected.txt
LayoutTests/svg/text/text-align-05-b-expected.txt
LayoutTests/svg/text/text-align-06-b-expected.txt
LayoutTests/svg/text/text-intro-05-t-expected.txt
LayoutTests/svg/text/text-path-01-b-expected.txt
LayoutTests/svg/text/text-text-04-t-expected.txt
LayoutTests/svg/text/text-text-05-t-expected.txt
LayoutTests/svg/text/text-text-06-t-expected.txt
LayoutTests/svg/text/text-text-07-t-expected.txt
LayoutTests/svg/text/text-tselect-02-f-expected.txt
LayoutTests/svg/text/text-tspan-01-b-expected.txt
WebCore/ChangeLog
WebCore/rendering/SVGInlineTextBox.cpp
WebCore/rendering/SVGInlineTextBox.h
WebCore/rendering/SVGRootInlineBox.cpp