Reviewed by Adam Roben.
authorzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Nov 2007 13:04:55 +0000 (13:04 +0000)
committerzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Nov 2007 13:04:55 +0000 (13:04 +0000)
commit5e68d19dc22d6195ac188d0789f8e1d3befd2208
tree43bf5dcfa67c39743ba2f91fc52e6f7c9f53650d
parent1856e237be8dee43d1b54fc1c3a69307028ca2fa
Reviewed by Adam Roben.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=15393
Fix problems with hidden glyphs. They were taken into account for quite
some operations (hit testing, length calulcations etc..) except painting.
Especially fixes boundaries of <textPath> (see using Web Inspector) if
text-anchor isn't equal to 'start'.

Added testcase:
svg/text/textPathBoundsBug.svg

Fixed testcase: (all showed text selection problems on text paths)
svg/batik/text/textGlyphOrientationHorizontal.svg
svg/batik/text/textOnPath.svg
svg/batik/text/textOnPath3.svg
svg/batik/text/verticalTextOnPath.svg
svg/text/text-align-04-b.svg
svg/W3C-SVG-1.1/text-align-04-b.svg

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/mac/svg/W3C-SVG-1.1/text-align-04-b-expected.txt
LayoutTests/platform/mac/svg/text/textPathBoundsBug-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/svg/text/textPathBoundsBug-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/svg/text/textPathBoundsBug-expected.txt [new file with mode: 0644]
LayoutTests/svg/batik/text/textGlyphOrientationHorizontal-expected.txt
LayoutTests/svg/batik/text/textOnPath-expected.txt
LayoutTests/svg/batik/text/textOnPath3-expected.txt
LayoutTests/svg/batik/text/verticalTextOnPath-expected.txt
LayoutTests/svg/text/text-align-04-b-expected.checksum
LayoutTests/svg/text/text-align-04-b-expected.png
LayoutTests/svg/text/text-align-04-b-expected.txt
LayoutTests/svg/text/textPathBoundsBug.svg [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/SVGCharacterLayoutInfo.cpp
WebCore/rendering/SVGCharacterLayoutInfo.h
WebCore/rendering/SVGInlineTextBox.cpp
WebCore/rendering/SVGRootInlineBox.cpp