8000 SVG textLength not working correctly · WebKit/WebKit@5c38a23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c38a23

Browse files
Ahmad-S792Ahmad Saleem
authored andcommitted
SVG textLength not working correctly
SVG textLength not working correctly https://bugs.webkit.org/show_bug.cgi?id=171805 Reviewed by Simon Fraser. Merge - https://chromium.googlesource.com/chromium/src/+/308e792b8d4648ba4e298c80faca80bc780b5735 & https://chromium.googlesource.com/chromium/src/+/1cc74004b24c8a79dcee523e913c1d929c1167da There should be no advance adjustment after the last character (really, "typographic unit"), so divide the excess space by the character count minus one - i.e the number of gaps - rather than the character count. Further, extend it to adjusting the 'textPath', 'textLength' computation in the same way. * Source/WebCore/rendering/svg/SVGTextChunk.cpp: (SVGTextChunk::layout): Update to account for last character in adjustment * Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp: (SVGTextLayoutEngine::beginTextPathLayout): Ditto * LayoutTests/imported/w3c/web-platform-tests/svg/text/scripted/texpath-textLength-text-anchor-001.tentative-expected.txt: Rebaselined * LayoutTests/platform/gtk/imported/w3c/web-platform-tests/svg/import/text-text-01-b-manual-expected.txt: Ditto * LayoutTests/platform/gtk/svg/batik/text/textLayout-expected.txt: Ditto * LayoutTests/platform/gtk/svg/batik/text/textLayout-expected.png: Ditto * LayoutTests/platform/gtk/svg/batik/text/textLength-expected.txt: Ditto * LayoutTests/platform/gtk/svg/batik/text/textLength-expected.png: Ditto * LayoutTests/platform/gtk/svg/batik/text/textOnPathSpaces-expected.png: Ditto * LayoutTests/platform/gtk/svg/batik/text/textOnPathSpaces-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt: Ditto * LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/text-text-01-b-expected.png: Ditto * LayoutTests/platform/gtk/svg/text/text-text-01-b-expected.txt: Ditto * LayoutTests/platform/gtk/svg/W3C-SVG-1.1/text-text-01-b-expected.png: Ditto * LayoutTests/platform/gtk/svg/W3C-SVG-1.1/text-text-01-b-expected.txt: Ditto * LayoutTests/platform/mac/svg/batik/text/textLayout-expected.png: Ditto * LayoutTests/platform/mac/svg/batik/text/textLayout-expected.txt: Ditto * LayoutTests/platform/mac/svg/batik/text/texOnPathSpaces-expected.txt: Ditto * LayoutTests/platform/mac/svg/batik/text/texOnPathSpaces-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-1-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-1-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-2-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-2-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-3-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-3-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-4-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-squeeze-4-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-1-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-1-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-2-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-2-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-3-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-3-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-4-expected.png: Ditto * LayoutTests/platform/mac/svg/text/select-textLength-spacing-stretch-4-expected.txt: Ditto * LayoutTests/platform/mac/svg/text/text-text-01-b-expected.txt: Ditto * LayoutTests/platform/mac/svg/W3C-SVG-1.1/text-text-01-b-expected.png: Ditto * LayoutTests/platform/mac/svg/W3C-SVG-1.1/text-text-01-b-expected.png: Ditto * LayoutTests/platform/ios/svg/batik/text/textLayout-expected.txt: Ditto * LayoutTests/platform/ios/svg/batik/text/textLength-expected.txt: Ditto * LayoutTests/platform/ios/svg/batik/text/textOnPathSpaces-expected.txt: Ditto * LayoutTests/platform/ios/svg/text/text-text-01-b-expected.txt: Ditto * LayoutTests/platform/ios/svg/W3C-SVG-1.1/text-text-01-b-expected.txt: Ditto * LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/svg/import/text-text-01-b-manual-expected.txt: Ditto * LayoutTests/platform/mac/imported/w3c/web-platform-tests/svg/import/text-text-01-b-manual-expected.txt: Ditto Canonical link: https://commits.webkit.org/258921@main
1 parent 6eceb6d commit 5c38a23

File tree

59 files changed

+1391
-1389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1391
-1389
lines changed

LayoutTests/imported/w3c/web-platform-tests/svg/text/scripted/textpath-textlength-text-anchor-001.tentative-expected.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ XXXX
55
XXXX
66
XXXX
77

8-
FAIL 'textLength' on <textPath> with 'text-anchor' adjustments assert_approx_equals: width, text-anchor=start expected 25 +/- 0.5 but got 38.75
8+
FAIL 'textLength' on <textPath> with 'text-anchor' adjustments assert_approx_equals: x, text-anchor=middle expected 37.5 +/- 0.5 but got 10
99

LayoutTests/platform/gtk/imported/w3c/web-platform-tests/svg/import/text-text-01-b-manual-expected.txt

Lines changed: 82 additions & 82 deletions
Large diffs are not rendered by default.
67 Bytes
Loading

LayoutTests/platform/gtk/svg/W3C-SVG-1.1/text-text-01-b-expected.txt

Lines changed: 82 additions & 82 deletions
Large diffs are not rendered by default.
-151 Bytes
Loading

LayoutTests/platform/gtk/svg/batik/text/textLayout-expected.txt

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ layer at (0,0) size 450x500
4949
RenderSVGText {text} at (102,141) size 246x12 contains 1 chunk(s)
5050
RenderSVGInlineText {#text} at (0,0) size 246x12
5151
chunk 1 (middle anchor) text run 1 at (102.00,150.00) startOffset 0 endOffset 59 width 246.00: "Letter Spacing Adjustment and Explicit Length Specification"
52-
RenderSVGContainer {g} at (40,158) size 112x39
53-
RenderSVGText {text} at (40,158) size 112x28 contains 1 chunk(s)
54-
RenderSVGInlineText {#text} at (0,0) size 112x27
52+
RenderSVGContainer {g} at (40,158) size 120x39
53+
RenderSVGText {text} at (40,158) size 120x28 contains 1 chunk(s)
54+
RenderSVGInlineText {#text} at (0,0) size 120x27
5555
chunk 1 text run 1 at (40.00,180.00) startOffset 0 endOffset 1 width 9.00: "s"
56-
chunk 1 text run 2 at (57.50,180.00) startOffset 1 endOffset 2 width 11.00: "a"
57-
chunk 1 text run 3 at (77.00,180.00) startOffset 2 endOffset 3 width 19.00: "m"
58-
chunk 1 text run 4 at (104.50,180.00) startOffset 3 endOffset 4 width 12.00: "p"
59-
chunk 1 text run 5 at (125.00,180.00) startOffset 4 endOffset 5 width 7.00: "l"
60-
chunk 1 text run 6 at (140.50,180.00) startOffset 5 endOffset 6 width 11.00: "e"
56+
chunk 1 text run 2 at (59.20,180.00) startOffset 1 endOffset 2 width 11.00: "a"
57+
chunk 1 text run 3 at (80.40,180.00) startOffset 2 endOffset 3 width 19.00: "m"
58+
chunk 1 text run 4 at (109.60,180.00) startOffset 3 endOffset 4 width 12.00: "p"
59+
chunk 1 text run 5 at (131.80,180.00) startOffset 4 endOffset 5 width 7.00: "l"
60+
chunk 1 text run 6 at (149.00,180.00) startOffset 5 endOffset 6 width 11.00: "e"
6161
RenderSVGText {text} at (40,187) size 58x10 contains 1 chunk(s)
6262
RenderSVGInlineText {#text} at (0,0) size 58x9
6363
chunk 1 text run 1 at (40.00,195.00) startOffset 0 endOffset 16 width 58.00: "textLength=\"120\""
6464
RenderSVGContainer {g} at (185,158) size 70x39
6565
RenderSVGText {text} at (185,158) size 70x28 contains 1 chunk(s)
6666
RenderSVGInlineText {#text} at (0,0) size 70x27
6767
chunk 1 text run 1 at (185.00,180.00) startOffset 0 endOffset 1 width 9.00: "s"
68-
chunk 1 text run 2 at (194.17,180.00) startOffset 1 endOffset 2 width 11.00: "a"
69-
chunk 1 text run 3 at (205.33,180.00) startOffset 2 endOffset 3 width 19.00: "m"
70-
chunk 1 text run 4 at (224.50,180.00) startOffset 3 endOffset 4 width 12.00: "p"
71-
chunk 1 text run 5 at (236.67,180.00) startOffset 4 endOffset 5 width 7.00: "l"
72-
chunk 1 text run 6 at (243.83,180.00) startOffset 5 endOffset 6 width 11.00: "e"
68+
chunk 1 text run 2 at (194.20,180.00) startOffset 1 endOffset 2 width 11.00: "a"
69+
chunk 1 text run 3 at (205.40,180.00) startOffset 2 endOffset 3 width 19.00: "m"
70+
chunk 1 text run 4 at (224.60,180.00) startOffset 3 endOffset 4 width 12.00: "p"
71+
chunk 1 text run 5 at (236.80,180.00) startOffset 4 endOffset 5 width 7.00: "l"
72+
chunk 1 text run 6 at (244.00,180.00) startOffset 5 endOffset 6 width 11.00: "e"
7373
RenderSVGText {text} at (185,187) size 54x10 contains 1 chunk(s)
7474
RenderSVGInlineText {#text} at (0,0) size 54x9
7575
chunk 1 text run 1 at (185.00,195.00) startOffset 0 endOffset 15 width 54.00: "textLength=\"70\""
@@ -160,71 +160,71 @@ layer at (0,0) size 450x500
160160
RenderSVGText {text} at (40,336) size 350x18 contains 1 chunk(s)
161161
RenderSVGInlineText {#text} at (0,0) size 350x17
162162
chunk 1 text run 1 at (40.00,350.00) startOffset 0 endOffset 1 width 14.00: "W"
163-
chunk 1 text run 2 at (54.57,350.00) startOffset 1 endOffset 2 width 3.40: "i"
164-
chunk 1 text run 3 at (58.54,350.00) startOffset 2 endOffset 3 width 8.00: "d"
165-
chunk 1 text run 4 at (67.12,350.00) startOffset 3 endOffset 4 width 7.00: "e"
166-
chunk 1 text run 5 at (74.69,350.00) startOffset 4 endOffset 5 width 4.00: " "
167-
chunk 1 text run 6 at (124.26,350.00) startOffset 5 endOffset 6 width 6.00: "s"
168-
chunk 1 text run 7 at (130.83,350.00) startOffset 6 endOffset 7 width 7.00: "e"
169-
chunk 1 text run 8 at (138.41,350.00) startOffset 7 endOffset 8 width 8.00: "p"
170-
chunk 1 text run 9 at (146.98,350.00) startOffset 8 endOffset 9 width 7.00: "a"
171-
chunk 1 text run 10 at (154.55,350.00) startOffset 9 endOffset 10 width 5.00: "r"
172-
chunk 1 text run 11 at (160.12,350.00) startOffset 10 endOffset 11 width 7.00: "a"
173-
chunk 1 text run 12 at (167.70,350.00) startOffset 11 endOffset 12 width 4.00: "t"
174-
chunk 1 text run 13 at (172.27,350.00) startOffset 12 endOffset 13 width 4.00: "i"
175-
chunk 1 text run 14 at (176.84,350.00) startOffset 13 endOffset 14 width 8.00: "o"
176-
chunk 1 text run 15 at (185.41,350.00) startOffset 14 endOffset 15 width 8.00: "n"
177-
chunk 1 text run 16 at (193.99,350.00) startOffset 15 endOffset 16 width 4.00: " "
178-
chunk 1 text run 17 at (243.56,350.00) startOffset 16 endOffset 17 width 8.00: "b"
179-
chunk 1 text run 18 at (252.13,350.00) startOffset 17 endOffset 18 width 7.00: "e"
180-
chunk 1 text run 19 at (259.70,350.00) startOffset 18 endOffset 19 width 4.00: "t"
181-
chunk 1 text run 20 at (264.28,350.00) startOffset 19 endOffset 20 width 11.00: "w"
182-
chunk 1 text run 21 at (275.85,350.00) startOffset 20 endOffset 21 width 7.00: "e"
183-
chunk 1 text run 22 at (283.42,350.00) startOffset 21 endOffset 22 width 7.00: "e"
184-
chunk 1 text run 23 at (290.99,350.00) startOffset 22 endOffset 23 width 8.00: "n"
185-
chunk 1 text run 24 at (299.57,350.00) startOffset 23 endOffset 24 width 4.00: " "
186-
chunk 1 text run 25 at (349.14,350.00) startOffset 24 endOffset 25 width 11.00: "w"
187-
chunk 1 text run 26 at (360.71,350.00) startOffset 25 endOffset 26 width 8.00: "o"
188-
chunk 1 text run 27 at (369.28,350.00) startOffset 26 endOffset 27 width 5.00: "r"
189-
chunk 1 text run 28 at (374.86,350.00) startOffset 27 endOffset 28 width 8.00: "d"
190-
chunk 1 text run 29 at (383.43,350.00) startOffset 28 endOffset 29 width 6.00: "s"
163+
chunk 1 text run 2 at (54.59,350.00) startOffset 1 endOffset 2 width 3.40: "i"
38BA 164+
chunk 1 text run 3 at (58.59,350.00) startOffset 2 endOffset 3 width 8.00: "d"
165+
chunk 1 text run 4 at (67.18,350.00) startOffset 3 endOffset 4 width 7.00: "e"
166+
chunk 1 text run 5 at (74.77,350.00) startOffset 4 endOffset 5 width 4.00: " "
167+
chunk 1 text run 6 at (124.36,350.00) startOffset 5 endOffset 6 width 6.00: "s"
168+
chunk 1 text run 7 at (130.96,350.00) startOffset 6 endOffset 7 width 7.00: "e"
169+
chunk 1 text run 8 at (138.55,350.00) startOffset 7 endOffset 8 width 8.00: "p"
170+
chunk 1 text run 9 at (147.14,350.00) startOffset 8 endOffset 9 width 7.00: "a"
171+
chunk 1 text run 10 at (154.74,350.00) startOffset 9 endOffset 10 width 5.00: "r"
172+
chunk 1 text run 11 at (160.33,350.00) startOffset 10 endOffset 11 width 7.00: "a"
173+
chunk 1 text run 12 at (167.92,350.00) startOffset 11 endOffset 12 width 4.00: "t"
174+
chunk 1 text run 13 at (172.51,350.00) startOffset 12 endOffset 13 width 4.00: "i"
175+
chunk 1 text run 14 at (177.11,350.00) startOffset 13 endOffset 14 width 8.00: "o"
176+
chunk 1 text run 15 at (185.70,350.00) startOffset 14 endOffset 15 width 8.00: "n"
177+
chunk 1 text run 16 at (194.29,350.00) startOffset 15 endOffset 16 width 4.00: " "
178+
chunk 1 text run 17 at (243.89,350.00) startOffset 16 endOffset 17 width 8.00: "b"
179+
chunk 1 text run 18 at (252.48,350.00) startOffset 17 endOffset 18 width 7.00: "e"
180+
chunk 1 text run 19 at (260.07,350.00) startOffset 18 endOffset 19 width 4.00: "t"
181+
chunk 1 text run 20 at (264.66,350.00) startOffset 19 endOffset 20 width 11.00: "w"
182+
chunk 1 text run 21 at (276.26,350.00) startOffset 20 endOffset 21 width 7.00: "e"
183+
chunk 1 text run 22 at (283.85,350.00) startOffset 21 endOffset 22 width 7.00: "e"
184+
chunk 1 text run 23 at (291.44,350.00) startOffset 22 endOffset 23 width 8.00: "n"
185+
chunk 1 text run 24 at (300.04,350.00) startOffset 23 endOffset 24 width 4.00: " "
186+
chunk 1 text run 25 at (349.63,350.00) startOffset 24 endOffset 25 width 11.00: "w"
187+
chunk 1 text run 26 at (361.22,350.00) startOffset 25 endOffset 26 width 8.00: "o"
188+
chunk 1 text run 27 at (369.81,350.00) startOffset 26 endOffset 27 width 5.00: "r"
189+
chunk 1 text run 28 at (375.41,350.00) startOffset 27 endOffset 28 width 8.00: "d"
190+
chunk 1 text run 29 at (384.00,350.00) startOffset 28 endOffset 29 width 6.00: "s"
191191
RenderSVGText {text} at (40,357) size 130x10 contains 1 chunk(s)
192192
RenderSVGInlineText {#text} at (0,0) size 130x9
193193
chunk 1 text run 1 at (40.00,365.00) startOffset 0 endOffset 35 width 130.00: "textLength=\"350\" word-spacing=\"3em\""
194-
RenderSVGContainer {g} at (40,381) size 346x31
195-
RenderSVGText {text} at (40,381) size 346x18 contains 1 chunk(s)
196-
RenderSVGInlineText {#text} at (0,0) size 346x17
194+
RenderSVGContainer {g} at (40,381) size 350x31
195+
RenderSVGText {text} at (40,381) size 350x18 contains 1 chunk(s)
196+
RenderSVGInlineText {#text} at (0,0) size 350x17
197197
chunk 1 text run 1 at (40.00,395.00) startOffset 0 endOffset 1 width 11.00: "N"
198-
chunk 1 text run 2 at (55.90,395.00) startOffset 1 endOffset 2 width 7.00: "a"
199-
chunk 1 text run 3 at (67.81,395.00) startOffset 2 endOffset 3 width 5.00: "r"
200-
chunk 1 text run 4 at (77.71,395.00) startOffset 3 endOffset 4 width 5.00: "r"
201-
chunk 1 text run 5 at (87.61,395.00) startOffset 4 endOffset 5 width 8.00: "o"
202-
chunk 1 text run 6 at (100.52,395.00) startOffset 5 endOffset 6 width 11.00: "w"
203-
chunk 1 text run 7 at (116.42,395.00) startOffset 6 endOffset 7 width 4.00: " "
204-
chunk 1 text run 8 at (120.32,395.00) startOffset 7 endOffset 8 width 6.00: "s"
205-
chunk 1 text run 9 at (131.23,395.00) startOffset 8 endOffset 9 width 7.00: "e"
206-
chunk 1 text run 10 at (143.13,395.00) startOffset 9 endOffset 10 width 8.00: "p"
207-
chunk 1 text run 11 at (156.03,395.00) startOffset 10 endOffset 11 width 7.00: "a"
208-
chunk 1 text run 12 at (167.94,395.00) startOffset 11 endOffset 12 width 5.00: "r"
209-
chunk 1 text run 13 at (177.84,395.00) startOffset 12 endOffset 13 width 7.00: "a"
210-
chunk 1 text run 14 at (189.74,395.00) startOffset 13 endOffset 14 width 4.00: "t"
211-
chunk 1 text run 15 at (198.65,395.00) startOffset 14 endOffset 15 width 4.00: "i"
212-
chunk 1 text run 16 at (207.55,395.00) startOffset 15 endOffset 16 width 8.00: "o"
213-
chunk 1 text run 17 at (220.45,395.00) startOffset 16 endOffset 17 width 8.00: "n"
214-
chunk 1 text run 18 at (233.35,395.00) startOffset 17 endOffset 18 width 4.00: " "
215-
chunk 1 text run 19 at (237.26,395.00) startOffset 18 endOffset 19 width 8.00: "b"
216-
chunk 1 text run 20 at (250.16,395.00) startOffset 19 endOffset 20 width 7.00: "e"
217-
chunk 1 text run 21 at (262.06,395.00) startOffset 20 endOffset 21 width 4.00: "t"
218-
chunk 1 text run 22 at (270.97,395.00) startOffset 21 endOffset 22 width 11.00: "w"
219-
chunk 1 text run 23 at (286.87,395.00) startOffset 22 endOffset 23 width 7.00: "e"
220-
chunk 1 text run 24 at (298.77,395.00) startOffset 23 endOffset 24 width 7.00: "e"
221-
chunk 1 text run 25 at (310.68,395.00) startOffset 24 endOffset 25 width 8.00: "n"
222-
chunk 1 text run 26 at (323.58,395.00) startOffset 25 endOffset 26 width 4.00: " "
223-
chunk 1 text run 27 at (327.48,395.00) startOffset 26 endOffset 27 width 11.00: "w"
224-
chunk 1 text run 28 at (343.39,395.00) startOffset 27 endOffset 28 width 8.00: "o"
225-
chunk 1 text run 29 at (356.29,395.00) startOffset 28 endOffset 29 width 5.00: "r"
226-
chunk 1 text run 30 at (366.19,395.00) startOffset 29 endOffset 30 width 8.00: "d"
227-
chunk 1 text run 31 at (379.10,395.00) startOffset 30 endOffset 31 width 6.00: "s"
198+
chunk 1 text run 2 at (56.07,395.00) startOffset 1 endOffset 2 width 7.00: "a"
199+
chunk 1 text run 3 at (68.13,395.00) startOffset 2 endOffset 3 width 5.00: "r"
200+
chunk 1 text run 4 at (78.20,395.00) startOffset 3 endOffset 4 width 5.00: "r"
201+
chunk 1 text run 5 at (88.27,395.00) startOffset 4 endOffset 5 width 8.00: "o"
202+
chunk 1 text run 6 at (101.33,395.00) startOffset 5 endOffset 6 width 11.00: "w"
203+
chunk 1 text run 7 at (117.40,395.00) startOffset 6 endOffset 7 width 4.00: " "
204+
chunk 1 text run 8 at (121.47,395.00) startOffset 7 endOffset 8 width 6.00: "s"
205+
chunk 1 text run 9 at (132.53,395.00) startOffset 8 endOffset 9 width 7.00: "e"
206+
chunk 1 text run 10 at (144.60,395.00) startOffset 9 endOffset 10 width 8.00: "p"
207+
chunk 1 text run 11 at (157.67,395.00) startOffset 10 endOffset 11 width 7.00: "a"
208+
chunk 1 text run 12 at (169.73,395.00) startOffset 11 endOffset 12 width 5.00: "r"
209+
chunk 1 text run 13 at (179.80,395.00) startOffset 12 endOffset 13 width 7.00: "a"
210+
chunk 1 text run 14 at (191.87,395.00) startOffset 13 endOffset 14 width 4.00: "t"
211+
chunk 1 text run 15 at (200.93,395.00) startOffset 14 endOffset 15 width 4.00: "i"
212+
chunk 1 text run 16 at (210.00,395.00) startOffset 15 endOffset 16 width 8.00: "o"
213+
chunk 1 text run 17 at (223.07,395.00) startOffset 16 endOffset 17 width 8.00: "n"
214+
chunk 1 text run 18 at (236.13,395.00) startOffset 17 endOffset 18 width 4.00: " "
215+
chunk 1 text run 19 at (240.20,395.00) startOffset 18 endOffset 19 width 8.00: "b"
216+
chunk 1 text run 20 at (253.27,395.00) startOffset 19 endOffset 20 width 7.00: "e"
217+
chunk 1 text run 21 at (265.33,395.00) startOffset 20 endOffset 21 width 4.00: "t"
218+
chunk 1 text run 22 at (274.40,395.00) startOffset 21 endOffset 22 width 11.00: "w"
219+
chunk 1 text run 23 at (290.47,395.00) startOffset 22 endOffset 23 width 7.00: "e"
220+
chunk 1 text run 24 at (302.53,395.00) startOffset 23 endOffset 24 width 7.00: "e"
221+
chunk 1 text run 25 at (314.60,395.00) startOffset 24 endOffset 25 width 8.00: "n"
222+
chunk 1 text run 26 at (327.67,395.00) startOffset 25 endOffset 26 width 4.00: " "
223+
chunk 1 text run 27 at (331.73,395.00) startOffset 26 endOffset 27 width 11.00: "w"
224+
chunk 1 text run 28 at (347.80,395.00) startOffset 27 endOffset 28 width 8.00: "o"
225+
chunk 1 text run 29 at (360.87,395.00) startOffset 28 endOffset 29 width 5.00: "r"
226+
chunk 1 text run 30 at (370.93,395.00) startOffset 29 endOffset 30 width 8.00: "d"
227+
chunk 1 text run 31 at (384.00,395.00) startOffset 30 endOffset 31 width 6.00: "s"
228228
RenderSVGText {text} at (40,402) size 123x10 contains 1 chunk(s)
229229
RenderSVGInlineText {#text} at (0,0) size 123x9
230230
chunk 1 text run 1 at (40.00,410.00) startOffset 0 endOffset 34 width 123.00: "textLength=\"350\" word-spacing=\"-5\""
22 Bytes
Loading

LayoutTests/platform/gtk/svg/batik/text/textLength-expected.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ layer at (0,0) size 450x500
8686
RenderSVGContainer {g} at (200,213) size 50x24
8787
RenderSVGRect {rect} at (200,215) size 50x20 [fill={[type=SOLID] [color=#DDE8FF]}] [x=200.00] [y=5.00] [width=50.00] [height=20.00]
8888
RenderSVGPath {line} at (224,213) size 2x24 [stroke={[type=SOLID] [color=#FF0000]}] [fill={[type=SOLID] [color=#000000]}] [x1=225.00] [y1=3.00] [x2=225.00] [y2=27.00]
89-
RenderSVGText {text} at (202,8) size 46x14 contains 1 chunk(s)
90-
RenderSVGInlineText {#text} at (0,0) size 45x14
91-
chunk 1 (middle anchor) text run 1 at (202.50,19.00) startOffset 0 endOffset 1 width 8.00: "B"
92-
chunk 1 (middle anchor) text run 2 at (215.50,19.00) startOffset 1 endOffset 2 width 5.00: "a"
89+
RenderSVGText {text} at (200,8) size 50x14 contains 1 chunk(s)
90+
RenderSVGInlineText {#text} at (0,0) size 50x14
91+
chunk 1 (middle anchor) text run 1 at (200.00,19.00) startOffset 0 endOffset 1 width 8.00: "B"
92+
chunk 1 (middle anchor) text run 2 at (214.25,19.00) startOffset 1 endOffset 2 width 5.00: "a"
9393
chunk 1 (middle anchor) text run 3 at (225.50,19.00) startOffset 2 endOffset 3 width 3.00: "t"
94-
chunk 1 (middle anchor) text run 4 at (233.50,19.00) startOffset 3 endOffset 4 width 3.00: "i"
95-
chunk 1 (middle anchor) text run 5 at (241.50,19.00) startOffset 4 endOffset 5 width 6.00: "k"
94+
chunk 1 (middle anchor) text run 4 at (234.75,19.00) startOffset 3 endOffset 4 width 3.00: "i"
95+
chunk 1 (middle anchor) text run 5 at (244.00,19.00) startOffset 4 endOffset 5 width 6.00: "k"
9696
RenderSVGText {text} at (127,29) size 196x14 contains 1 chunk(s)
9797
RenderSVGInlineText {#text} at (0,0) size 196x14
9898
chunk 1 (middle anchor) text run 1 at (127.00,40.00) startOffset 0 endOffset 38 width 196.00: "textLength=\"50\" lengthAdjust=\"spacing\""
-4 Bytes
Loading

0 commit comments

Comments
 (0)
0