[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

zimmermann at webkit.org zimmermann at webkit.org
Wed Dec 22 14:04:26 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 32345580d0d1fcaf6d80816afa7a952592556699
Author: zimmermann at webkit.org <zimmermann at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Oct 2 09:26:24 2010 +0000

    2010-10-02  Nikolas Zimmermann  <nzimmermann at rim.com>
    
            Not reviewed.
    
            Rewrite SVG text layout code
            https://bugs.webkit.org/show_bug.cgi?id=45532
    
            Rebaseline gtk / qt / win specific SVG text results.
    
            * platform/gtk/svg/batik/text/textDecoration-expected.txt:
            * platform/gtk/svg/css/composite-shadow-text-expected.txt:
            * platform/gtk/svg/css/shadow-changes-expected.txt:
            * platform/gtk/svg/css/text-shadow-multiple-expected.txt:
            * platform/gtk/svg/custom/broken-internal-references-expected.txt:
            * platform/gtk/svg/custom/mouse-move-on-svg-container-expected.txt:
            * platform/gtk/svg/custom/mouse-move-on-svg-container-standalone-expected.txt:
            * platform/gtk/svg/custom/mouse-move-on-svg-root-expected.txt:
            * platform/gtk/svg/custom/mouse-move-on-svg-root-standalone-expected.txt:
            * platform/gtk/svg/custom/stroke-width-large-expected.txt:
            * platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt:
            * platform/gtk/svg/filters/filter-on-tspan-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-squeeze-3-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt:
            * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt:
            * platform/gtk/svg/text/select-x-list-1-expected.txt:
            * platform/gtk/svg/text/select-x-list-2-expected.txt:
            * platform/gtk/svg/text/select-x-list-3-expected.txt:
            * platform/gtk/svg/text/select-x-list-4-expected.txt:
            * platform/gtk/svg/text/select-x-list-with-tspans-1-expected.txt:
            * platform/gtk/svg/text/select-x-list-with-tspans-2-expected.txt:
            * platform/gtk/svg/text/select-x-list-with-tspans-3-expected.txt:
            * platform/gtk/svg/text/select-x-list-with-tspans-4-expected.txt:
            * platform/gtk/svg/text/text-hkern-expected.txt:
            * platform/gtk/svg/text/text-hkern-on-vertical-text-expected.txt:
            * platform/gtk/svg/text/text-vkern-expected.txt:
            * platform/qt/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt:
            * platform/qt/svg/batik/text/textDecoration-expected.txt:
            * platform/qt/svg/custom/broken-internal-references-expected.txt:
            * platform/qt/svg/filters/filter-on-filter-for-text-expected.txt:
            * platform/qt/svg/filters/filter-on-tspan-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-squeeze-1-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-squeeze-2-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-squeeze-3-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-squeeze-4-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-stretch-1-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-stretch-2-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-stretch-3-expected.txt:
            * platform/qt/svg/text/select-textLength-spacing-stretch-4-expected.txt:
            * platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt:
            * platform/qt/svg/text/select-x-list-1-expected.txt:
            * platform/qt/svg/text/select-x-list-2-expected.txt:
            * platform/qt/svg/text/select-x-list-3-expected.txt:
            * platform/qt/svg/text/select-x-list-4-expected.txt:
            * platform/qt/svg/text/select-x-list-with-tspans-1-expected.txt:
            * platform/qt/svg/text/select-x-list-with-tspans-2-expected.txt:
            * platform/qt/svg/text/select-x-list-with-tspans-3-expected.txt:
            * platform/qt/svg/text/select-x-list-with-tspans-4-expected.txt:
            * platform/qt/svg/text/text-hkern-expected.txt:
            * platform/qt/svg/text/text-hkern-on-vertical-text-expected.txt:
            * platform/qt/svg/text/text-vkern-expected.txt:
            * platform/qt/svg/transforms/text-with-mask-with-svg-transform-expected.txt:
            * platform/win/svg/custom/broken-internal-references-expected.txt:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68977 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index e2ba003..85b7268 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,79 @@
+2010-10-02  Nikolas Zimmermann  <nzimmermann at rim.com>
+
+        Not reviewed.
+
+        Rewrite SVG text layout code
+        https://bugs.webkit.org/show_bug.cgi?id=45532
+
+        Rebaseline gtk / qt / win specific SVG text results.
+
+        * platform/gtk/svg/batik/text/textDecoration-expected.txt:
+        * platform/gtk/svg/css/composite-shadow-text-expected.txt:
+        * platform/gtk/svg/css/shadow-changes-expected.txt:
+        * platform/gtk/svg/css/text-shadow-multiple-expected.txt:
+        * platform/gtk/svg/custom/broken-internal-references-expected.txt:
+        * platform/gtk/svg/custom/mouse-move-on-svg-container-expected.txt:
+        * platform/gtk/svg/custom/mouse-move-on-svg-container-standalone-expected.txt:
+        * platform/gtk/svg/custom/mouse-move-on-svg-root-expected.txt:
+        * platform/gtk/svg/custom/mouse-move-on-svg-root-standalone-expected.txt:
+        * platform/gtk/svg/custom/stroke-width-large-expected.txt:
+        * platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt:
+        * platform/gtk/svg/filters/filter-on-tspan-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-squeeze-3-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt:
+        * platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt:
+        * platform/gtk/svg/text/select-x-list-1-expected.txt:
+        * platform/gtk/svg/text/select-x-list-2-expected.txt:
+        * platform/gtk/svg/text/select-x-list-3-expected.txt:
+        * platform/gtk/svg/text/select-x-list-4-expected.txt:
+        * platform/gtk/svg/text/select-x-list-with-tspans-1-expected.txt:
+        * platform/gtk/svg/text/select-x-list-with-tspans-2-expected.txt:
+        * platform/gtk/svg/text/select-x-list-with-tspans-3-expected.txt:
+        * platform/gtk/svg/text/select-x-list-with-tspans-4-expected.txt:
+        * platform/gtk/svg/text/text-hkern-expected.txt:
+        * platform/gtk/svg/text/text-hkern-on-vertical-text-expected.txt:
+        * platform/gtk/svg/text/text-vkern-expected.txt:
+        * platform/qt/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt:
+        * platform/qt/svg/batik/text/textDecoration-expected.txt:
+        * platform/qt/svg/custom/broken-internal-references-expected.txt:
+        * platform/qt/svg/filters/filter-on-filter-for-text-expected.txt:
+        * platform/qt/svg/filters/filter-on-tspan-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-squeeze-1-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-squeeze-2-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-squeeze-3-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-squeeze-4-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-stretch-1-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-stretch-2-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-stretch-3-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacing-stretch-4-expected.txt:
+        * platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt:
+        * platform/qt/svg/text/select-x-list-1-expected.txt:
+        * platform/qt/svg/text/select-x-list-2-expected.txt:
+        * platform/qt/svg/text/select-x-list-3-expected.txt:
+        * platform/qt/svg/text/select-x-list-4-expected.txt:
+        * platform/qt/svg/text/select-x-list-with-tspans-1-expected.txt:
+        * platform/qt/svg/text/select-x-list-with-tspans-2-expected.txt:
+        * platform/qt/svg/text/select-x-list-with-tspans-3-expected.txt:
+        * platform/qt/svg/text/select-x-list-with-tspans-4-expected.txt:
+        * platform/qt/svg/text/text-hkern-expected.txt:
+        * platform/qt/svg/text/text-hkern-on-vertical-text-expected.txt:
+        * platform/qt/svg/text/text-vkern-expected.txt:
+        * platform/qt/svg/transforms/text-with-mask-with-svg-transform-expected.txt:
+        * platform/win/svg/custom/broken-internal-references-expected.txt:
+
 2010-10-01  Nikolas Zimmermann  <nzimmermann at rim.com>
 
         Reviewed by Dirk Schulze.
diff --git a/LayoutTests/platform/gtk/svg/batik/text/textDecoration-expected.txt b/LayoutTests/platform/gtk/svg/batik/text/textDecoration-expected.txt
index 55fcfbd..fa109e9 100644
--- a/LayoutTests/platform/gtk/svg/batik/text/textDecoration-expected.txt
+++ b/LayoutTests/platform/gtk/svg/batik/text/textDecoration-expected.txt
@@ -56,43 +56,43 @@ layer at (0,0) size 450x500
             chunk 1 text run 1 at (50.00,300.00) startOffset 0 endOffset 12 width 101.00: "Decorations "
           RenderSVGTSpan {tspan} at (0,0) size 35x23
             RenderSVGInlineText {#text} at (101,0) size 35x23
-              chunk 1 text run 2 at (151.00,290.00) startOffset 0 endOffset 4 width 35.00: "with"
+              chunk 1 text run 1 at (151.00,290.00) startOffset 0 endOffset 4 width 35.00: "with"
           RenderSVGTSpan {tspan} at (0,0) size 46x23
             RenderSVGInlineText {#text} at (136,10) size 46x23
-              chunk 1 text run 3 at (186.00,300.00) startOffset 0 endOffset 6 width 46.00: " tspan"
+              chunk 1 text run 1 at (186.00,300.00) startOffset 0 endOffset 6 width 46.00: " tspan"
         RenderSVGText {text} at (50,322) size 213x23 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 132x23
             chunk 1 text run 1 at (50.00,340.00) startOffset 0 endOffset 17 width 132.00: "Transparent text "
           RenderSVGTSpan {tspan} at (0,0) size 35x23
             RenderSVGInlineText {#text} at (132,0) size 35x23
-              chunk 1 text run 2 at (182.00,340.00) startOffset 0 endOffset 4 width 35.00: "with"
+              chunk 1 text run 1 at (182.00,340.00) startOffset 0 endOffset 4 width 35.00: "with"
           RenderSVGInlineText {#text} at (167,0) size 46x23
-            chunk 1 text run 3 at (217.00,340.00) startOffset 0 endOffset 6 width 46.00: " tspan"
+            chunk 1 text run 1 at (217.00,340.00) startOffset 0 endOffset 6 width 46.00: " tspan"
         RenderSVGText {text} at (50,362) size 216x23 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 53x23
             chunk 1 text run 1 at (50.00,380.00) startOffset 0 endOffset 6 width 53.00: "Tspan "
           RenderSVGTSpan {tspan} at (0,0) size 74x23
             RenderSVGInlineText {#text} at (53,0) size 74x23
-              chunk 1 text run 2 at (103.00,380.00) startOffset 0 endOffset 8 width 74.00: "with own"
+              chunk 1 text run 1 at (103.00,380.00) startOffset 0 endOffset 8 width 74.00: "with own"
           RenderSVGInlineText {#text} at (127,0) size 89x23
-            chunk 1 text run 3 at (177.00,380.00) startOffset 0 endOffset 11 width 89.00: " decoration"
+            chunk 1 text run 1 at (177.00,380.00) startOffset 0 endOffset 11 width 89.00: " decoration"
         RenderSVGText {text} at (50,402) size 201x23 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 53x23
             chunk 1 text run 1 at (50.00,420.00) startOffset 0 endOffset 6 width 53.00: "Tspan "
           RenderSVGTSpan {tspan} at (0,0) size 59x23
             RenderSVGInlineText {#text} at (53,0) size 59x23
-              chunk 1 text run 2 at (103.00,420.00) startOffset 0 endOffset 7 width 59.00: "with no"
+              chunk 1 text run 1 at (103.00,420.00) startOffset 0 endOffset 7 width 59.00: "with no"
           RenderSVGInlineText {#text} at (112,0) size 89x23
-            chunk 1 text run 3 at (162.00,420.00) startOffset 0 endOffset 11 width 89.00: " decoration"
+            chunk 1 text run 1 at (162.00,420.00) startOffset 0 endOffset 11 width 89.00: " decoration"
         RenderSVGText {text} at (50,442) size 198x23 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 60x23
             chunk 1 text run 1 at (50.00,460.00) startOffset 0 endOffset 7 width 60.00: "Nested "
           RenderSVGTSpan {tspan} at (0,0) size 138x23
             RenderSVGInlineText {#text} at (60,0) size 46x23
-              chunk 1 text run 2 at (110.00,460.00) startOffset 0 endOffset 6 width 46.00: "tspan "
+              chunk 1 text run 1 at (110.00,460.00) startOffset 0 endOffset 6 width 46.00: "tspan "
             RenderSVGTSpan {tspan} at (0,0) size 45x23
               RenderSVGInlineText {#text} at (106,0) size 45x23
-                chunk 1 text run 3 at (156.00,460.00) startOffset 0 endOffset 5 width 45.00: "decor"
+                chunk 1 text run 1 at (156.00,460.00) startOffset 0 endOffset 5 width 45.00: "decor"
             RenderSVGInlineText {#text} at (151,0) size 47x23
-              chunk 1 text run 4 at (201.00,460.00) startOffset 0 endOffset 6 width 47.00: "ations"
+              chunk 1 text run 1 at (201.00,460.00) startOffset 0 endOffset 6 width 47.00: "ations"
     RenderSVGContainer {use} at (0,0) size 0x0
diff --git a/LayoutTests/platform/gtk/svg/css/composite-shadow-text-expected.txt b/LayoutTests/platform/gtk/svg/css/composite-shadow-text-expected.txt
index d0839f3..81038ee 100644
--- a/LayoutTests/platform/gtk/svg/css/composite-shadow-text-expected.txt
+++ b/LayoutTests/platform/gtk/svg/css/composite-shadow-text-expected.txt
@@ -9,15 +9,15 @@ layer at (0,0) size 800x600
       RenderSVGResourcePattern {pattern} [id="pattern"] [patternUnits=userSpaceOnUse] [patternContentUnits=userSpaceOnUse]
         RenderPath {rect} at (0,0) size 10x10 [fill={[type=SOLID] [color=#0000FF]}] [data="M0.00,0.00 L10.00,0.00 L10.00,10.00 L0.00,10.00 Z"]
         RenderPath {rect} at (0,10) size 10x10 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,10.00 L10.00,10.00 L10.00,20.00 L0.00,20.00 Z"]
-    RenderSVGContainer {g} at (9,8) size 245x424
-      RenderSVGText {text} at (10,9) size 183x112 contains 1 chunk(s)
-        RenderSVGInlineText {#text} at (0,0) size 183x112
+    RenderSVGContainer {g} at (9,8) size 245x425
+      RenderSVGText {text} at (10,9) size 183x113 contains 1 chunk(s)
+        RenderSVGInlineText {#text} at (0,0) size 183x113
           chunk 1 text run 1 at (10.00,100.00) startOffset 0 endOffset 4 width 183.00: "Test"
-      RenderSVGText {text} at (10,134) size 183x112 contains 1 chunk(s)
-        RenderSVGInlineText {#text} at (0,0) size 183x112
+      RenderSVGText {text} at (10,134) size 183x113 contains 1 chunk(s)
+        RenderSVGInlineText {#text} at (0,0) size 183x113
           chunk 1 text run 1 at (10.00,225.00) startOffset 0 endOffset 4 width 183.00: "Test"
-      RenderSVGText {text} at (10,259) size 183x112 contains 1 chunk(s)
-        RenderSVGInlineText {#text} at (0,0) size 183x112
+      RenderSVGText {text} at (10,259) size 183x113 contains 1 chunk(s)
+        RenderSVGInlineText {#text} at (0,0) size 183x113
           chunk 1 text run 1 at (10.00,350.00) startOffset 0 endOffset 4 width 183.00: "Test"
     RenderSVGText {text} at (38,435) size 324x19 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 324x19
diff --git a/LayoutTests/platform/gtk/svg/css/shadow-changes-expected.txt b/LayoutTests/platform/gtk/svg/css/shadow-changes-expected.txt
index c1514b5..8552457 100644
--- a/LayoutTests/platform/gtk/svg/css/shadow-changes-expected.txt
+++ b/LayoutTests/platform/gtk/svg/css/shadow-changes-expected.txt
@@ -5,6 +5,6 @@ layer at (0,0) size 800x600
     RenderSVGContainer {g} at (120,0) size 341x290
       RenderPath {rect} at (135,5) size 215x215 [fill={[type=SOLID] [color=#FF0000]}] [data="M150.00,20.00 L350.00,20.00 L350.00,220.00 L150.00,220.00 Z"]
       RenderPath {circle} at (205,75) size 215x215 [fill={[type=SOLID] [color=#0000FF]}] [data="M420.00,190.00 L419.80,196.28 L419.21,202.54 L418.23,208.74 L416.86,214.87 L415.11,220.90 L412.98,226.81 L410.48,232.58 L407.63,238.18 L404.43,243.58 L400.90,248.78 L397.05,253.74 L392.90,258.45 L388.45,262.90 L383.74,267.05 L378.78,270.90 L373.58,274.43 L368.18,277.63 L362.58,280.48 L356.81,282.98 L350.90,285.11 L344.87,286.86 L338.74,288.23 L332.54,289.21 L326.28,289.80 L320.00,290.00 L313.72,289.80 L307.46,289.21 L301.26,288.23 L295.13,286.86 L289.10,285.11 L283.19,282.98 L277.42,280.48 L271.82,277.63 L266.42,274.43 L261.22,270.90 L256.26,267.05 L251.55,262.90 L247.10,258.45 L242.95,253.74 L239.10,248.78 L235.57,243.58 L232.37,238.18 L229.52,232.58 L227.02,226.81 L224.89,220.90 L223.14,214.87 L221.77,208.74 L220.79,202.54 L220.20,196.28 L220.00,190.00 L220.20,183.72 L220.79,177.46 L221.77,171.26 L223.14,165.13 L224.89,159.10 L227.02,153.19 L229.52,147.42 L232.37,141.82 L235.57,136.42 L239.10,131.22 L242.95,126.26 L247.10,121.55 L251.55,117.10 L256.26,112.95 L261.22,109.10 L266.42,105.57 L271.82,102.37 L277.42,99.52 L283.19,97.02 L289.10,94.89 L295.13,93.14 L301.26,91.77 L307.46,90.79 L313.72,90.20 L320.00,90.00 L326.28,90.20 L332.54,90.79 L338.74,91.77 L344.87,93.14 L350.90,94.89 L356.81,97.02 L362.58,99.52 L368.18,102.37 L373.58,105.57 L378.78,109.10 L383.74,112.95 L388.45,117.10 L392.90,121.55 L397.05,126.26 L400.90,131.22 L404.43,136.42 L407.63,141.82 L410.48,147.42 L412.98,153.19 L415.11,159.10 L416.86,165.13 L418.23,171.26 L419.21,177.46 L419.80,183.72 Z"]
-      RenderSVGText {text} at (270,36) size 191x104 contains 1 chunk(s)
-        RenderSVGInlineText {#text} at (0,0) size 191x104
+      RenderSVGText {text} at (270,36) size 191x105 contains 1 chunk(s)
+        RenderSVGInlineText {#text} at (0,0) size 191x105
           chunk 1 text run 1 at (270.00,120.00) startOffset 0 endOffset 3 width 191.00: "SVG"
diff --git a/LayoutTests/platform/gtk/svg/css/text-shadow-multiple-expected.txt b/LayoutTests/platform/gtk/svg/css/text-shadow-multiple-expected.txt
index 0b90098..ff07169 100644
--- a/LayoutTests/platform/gtk/svg/css/text-shadow-multiple-expected.txt
+++ b/LayoutTests/platform/gtk/svg/css/text-shadow-multiple-expected.txt
@@ -13,18 +13,18 @@ layer at (0,0) size 800x410
               RenderSVGInlineText {#text} at (0,0) size 96x58
                 chunk 1 text run 1 at (20.00,66.80) startOffset 0 endOffset 4 width 96.00: "This"
             RenderSVGInlineText {#text} at (96,0) size 14x58
-              chunk 1 text run 2 at (116.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
+              chunk 1 text run 1 at (116.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
             RenderSVGTSpan {tspan} at (0,0) size 80x58
               RenderSVGInlineText {#text} at (110,0) size 80x58
-                chunk 1 text run 3 at (130.00,66.80) startOffset 0 endOffset 4 width 80.00: "text"
+                chunk 1 text run 1 at (130.00,66.80) startOffset 0 endOffset 4 width 80.00: "text"
             RenderSVGInlineText {#text} at (190,0) size 14x58
-              chunk 1 text run 4 at (210.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
+              chunk 1 text run 1 at (210.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
             RenderSVGTSpan {tspan} at (0,0) size 305x58
               RenderSVGInlineText {#text} at (204,0) size 305x58
-                chunk 1 text run 5 at (224.00,66.80) startOffset 0 endOffset 14 width 305.00: "casts multiple"
+                chunk 1 text run 1 at (224.00,66.80) startOffset 0 endOffset 14 width 305.00: "casts multiple"
             RenderSVGInlineText {#text} at (509,0) size 211x58
-              chunk 1 text run 6 at (529.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
-              chunk 1 text run 7 at (543.00,66.80) startOffset 0 endOffset 7 width 197.00: "shadows"
+              chunk 1 text run 1 at (529.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
+              chunk 1 text run 1 at (543.00,66.80) startOffset 0 endOffset 7 width 197.00: "shadows"
         RenderText {#text} at (0,0) size 0x0
       RenderBlock {p} at (0,205) size 800x19
         RenderText {#text} at (0,0) size 530x19
@@ -36,18 +36,18 @@ layer at (0,0) size 800x410
               RenderSVGInlineText {#text} at (0,0) size 96x58
                 chunk 1 text run 1 at (20.00,66.80) startOffset 0 endOffset 4 width 96.00: "This"
             RenderSVGInlineText {#text} at (96,0) size 14x58
-              chunk 1 text run 2 at (116.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
+              chunk 1 text run 1 at (116.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
             RenderSVGTSpan {tspan} at (0,0) size 80x58
               RenderSVGInlineText {#text} at (110,0) size 80x58
-                chunk 1 text run 3 at (130.00,66.80) startOffset 0 endOffset 4 width 80.00: "text"
+                chunk 1 text run 1 at (130.00,66.80) startOffset 0 endOffset 4 width 80.00: "text"
             RenderSVGInlineText {#text} at (190,0) size 14x58
-              chunk 1 text run 4 at (210.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
+              chunk 1 text run 1 at (210.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
             RenderSVGTSpan {tspan} at (0,0) size 305x58
               RenderSVGInlineText {#text} at (204,0) size 305x58
-                chunk 1 text run 5 at (224.00,66.80) startOffset 0 endOffset 14 width 305.00: "casts multiple"
+                chunk 1 text run 1 at (224.00,66.80) startOffset 0 endOffset 14 width 305.00: "casts multiple"
             RenderSVGInlineText {#text} at (509,0) size 211x58
-              chunk 1 text run 6 at (529.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
-              chunk 1 text run 7 at (543.00,66.80) startOffset 0 endOffset 7 width 197.00: "shadows"
+              chunk 1 text run 1 at (529.00,66.80) startOffset 0 endOffset 1 width 14.00: " "
+              chunk 1 text run 1 at (543.00,66.80) startOffset 0 endOffset 7 width 197.00: "shadows"
         RenderText {#text} at (0,0) size 0x0
 layer at (20,51) size 720x58
   RenderBlock (positioned) {div} at (20,51) size 720x58
diff --git a/LayoutTests/platform/gtk/svg/custom/broken-internal-references-expected.txt b/LayoutTests/platform/gtk/svg/custom/broken-internal-references-expected.txt
index 1146a00..cc59c8d 100644
--- a/LayoutTests/platform/gtk/svg/custom/broken-internal-references-expected.txt
+++ b/LayoutTests/platform/gtk/svg/custom/broken-internal-references-expected.txt
@@ -18,7 +18,6 @@ layer at (0,0) size 800x600
     RenderSVGText {text} at (0,0) size 0x0 contains 1 chunk(s)
       RenderSVGTextPath {textPath} at (0,0) size 0x0
         RenderSVGInlineText {#text} at (0,0) size 0x0
-          chunk 1 text run 1 at (340282346638528859811704183484516925440.00,340282346638528859811704183484516925440.00) startOffset 0 endOffset 18 width 287.00: "Shoud not be shown"
       RenderSVGInlineText {#text} at (0,0) size 0x0
     RenderSVGText {text}
       RenderSVGInline {tref} at (0,0) size 0x0
diff --git a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-expected.txt b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-expected.txt
index dc466fe..dbebdce 100644
--- a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-expected.txt
+++ b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-expected.txt
@@ -11,4 +11,4 @@ layer at (0,0) size 800x410
             chunk 1 (middle anchor) text run 1 at (56.00,50.00) startOffset 0 endOffset 49 width 288.00: "The circle should stay in the bottom-right corner"
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 49 of child 0 {#text} of child 3 {text} of child 1 {svg} of body
+caret: position 25 of child 0 {#text} of child 3 {text} of child 1 {svg} of body
diff --git a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-standalone-expected.txt b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-standalone-expected.txt
index 460a37a..e0fc29e 100644
--- a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-standalone-expected.txt
+++ b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-container-standalone-expected.txt
@@ -7,4 +7,4 @@ layer at (0,0) size 406x406
     RenderSVGText {text} at (56,35) size 288x19 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 288x19
         chunk 1 (middle anchor) text run 1 at (56.00,50.00) startOffset 0 endOffset 49 width 288.00: "The circle should stay in the bottom-right corner"
-caret: position 49 of child 0 {#text} of child 3 {text} of child 0 {svg} of document
+caret: position 25 of child 0 {#text} of child 3 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-expected.txt b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-expected.txt
index f9d9fe8..859a414 100644
--- a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-expected.txt
+++ b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-expected.txt
@@ -10,4 +10,4 @@ layer at (0,0) size 800x410
             chunk 1 (middle anchor) text run 1 at (99.50,50.00) startOffset 0 endOffset 34 width 201.00: "The circle should be in the middle"
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-caret: position 34 of child 0 {#text} of child 3 {text} of child 1 {svg} of body
+caret: position 16 of child 0 {#text} of child 3 {text} of child 1 {svg} of body
diff --git a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-standalone-expected.txt b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-standalone-expected.txt
index cef85c1..a7dbad4 100644
--- a/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-standalone-expected.txt
+++ b/LayoutTests/platform/gtk/svg/custom/mouse-move-on-svg-root-standalone-expected.txt
@@ -6,4 +6,4 @@ layer at (0,0) size 406x406
     RenderSVGText {text} at (99,35) size 202x19 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 202x19
         chunk 1 (middle anchor) text run 1 at (99.50,50.00) startOffset 0 endOffset 34 width 201.00: "The circle should be in the middle"
-caret: position 34 of child 0 {#text} of child 3 {text} of child 0 {svg} of document
+caret: position 16 of child 0 {#text} of child 3 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/custom/stroke-width-large-expected.txt b/LayoutTests/platform/gtk/svg/custom/stroke-width-large-expected.txt
index 358fbbe..fe9b383 100644
--- a/LayoutTests/platform/gtk/svg/custom/stroke-width-large-expected.txt
+++ b/LayoutTests/platform/gtk/svg/custom/stroke-width-large-expected.txt
@@ -4,6 +4,6 @@ layer at (0,0) size 800x600
   RenderSVGRoot {svg} at (88,50) size 538x504
     RenderPath {path} at (316,209) size 150x133 [stroke={[type=SOLID] [color=#FF0000] [stroke width=256.00] [line join=ROUND]}] [data="M28600.00,19000.00 L41800.00,19000.00 L41800.00,30600.00 L28600.00,30600.00 Z"]
     RenderPath {path} at (156,50) size 470x452 [stroke={[type=SOLID] [color=#000000] [stroke width=15000.00] [line join=ROUND]}] [data="M21600.00,12000.00 L48800.00,12000.00 L48800.00,37600.00 L21600.00,37600.00 Z"]
-    RenderSVGText {text} at (8000,48041) size 16044x1773 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 16044x1773
+    RenderSVGText {text} at (8000,48041) size 16044x1806 contains 1 chunk(s)
+      RenderSVGInlineText {#text} at (0,0) size 16044x1806
         chunk 1 text run 1 at (8000.00,49500.00) startOffset 0 endOffset 25 width 16044.00: "No red should be visible."
diff --git a/LayoutTests/platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt b/LayoutTests/platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt
index a787999..0c77729 100644
--- a/LayoutTests/platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt
+++ b/LayoutTests/platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt
@@ -14,7 +14,7 @@ layer at (0,0) size 800x600
       RenderSVGTSpan {tspan} at (0,0) size 63x23
         RenderSVGInlineText {#text} at (131,0) size 63x23
           [filter="filter"] RenderSVGResourceFilter {filter} at (0,0) size 0x0
-          chunk 1 text run 2 at (161.00,30.00) startOffset 0 endOffset 9 width 63.00: "on filter"
+          chunk 1 text run 1 at (161.00,30.00) startOffset 0 endOffset 9 width 63.00: "on filter"
       RenderSVGInlineText {#text} at (194,0) size 5x23
         [filter="filter"] RenderSVGResourceFilter {filter} at (0,0) size 0x0
-        chunk 1 text run 3 at (224.00,30.00) startOffset 0 endOffset 1 width 5.00: "."
+        chunk 1 text run 1 at (224.00,30.00) startOffset 0 endOffset 1 width 5.00: "."
diff --git a/LayoutTests/platform/gtk/svg/filters/filter-on-tspan-expected.txt b/LayoutTests/platform/gtk/svg/filters/filter-on-tspan-expected.txt
index 2e75831..c8d8e0a 100644
--- a/LayoutTests/platform/gtk/svg/filters/filter-on-tspan-expected.txt
+++ b/LayoutTests/platform/gtk/svg/filters/filter-on-tspan-expected.txt
@@ -11,6 +11,6 @@ layer at (0,0) size 800x600
       RenderSVGTSpan {tspan} at (0,0) size 26x19
         RenderSVGInlineText {#text} at (63,0) size 26x19
           [filter="filter"] RenderSVGResourceFilter {filter} at (0,0) size 0x0
-          chunk 1 text run 2 at (163.00,100.00) startOffset 0 endOffset 4 width 26.00: "Test"
+          chunk 1 text run 1 at (163.00,100.00) startOffset 0 endOffset 4 width 26.00: "Test"
       RenderSVGInlineText {#text} at (89,0) size 4x19
-        chunk 1 text run 3 at (189.00,100.00) startOffset 0 endOffset 1 width 4.00: "."
+        chunk 1 text run 1 at (189.00,100.00) startOffset 0 endOffset 1 width 4.00: "."
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt
index 997b053..7ef04f5 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-1-expected.txt
@@ -1,11 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x65
-    RenderSVGContainer {g} at (50,0) size 75x65
+  RenderSVGRoot {svg} at (0,0) size 335x95
+    RenderSVGContainer {g} at (0,0) size 335x95
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (115,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M24.27,0.00 L24.27,14.00"]
       RenderPath {svg:rect} at (50,0) size 75x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L24.27,0.00 L24.27,13.00 L10.00,13.00 Z"]
+      RenderSVGText {svg:text} at (0,27) size 134x10 contains 1 chunk(s)
+        RenderSVGInlineText {#text} at (0,0) size 134x10
+          chunk 1 text run 1 at (0.00,35.00) startOffset 0 endOffset 42 width 134.00: "Expected 'Tex' to be selected, got: 'Text'"
     RenderSVGText {text} at (10,0) size 52x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 78.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (15.13,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (19.27,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (22.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (23.53,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.93,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (31.07,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (36.20,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.33,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.47,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.60,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.73,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.87,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
-selection end:   position 3 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
+selection end:   position 4 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt
index 0ff2ab6..83fb7d9 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-2-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x65
-    RenderSVGContainer {g} at (120,0) size 40x65
+  RenderSVGRoot {svg} at (50,0) size 260x70
+    RenderSVGContainer {g} at (120,0) size 45x70
+      RenderPath {svg:line} at (120,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M24.67,0.00 L24.67,14.00"]
+      RenderPath {svg:line} at (155,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M31.80,0.00 L31.80,14.00"]
       RenderPath {svg:rect} at (120,0) size 40x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M24.67,0.00 L31.80,0.00 L31.80,13.00 L24.67,13.00 Z"]
     RenderSVGText {text} at (10,0) size 52x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 78.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (15.13,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (19.27,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (22.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (23.53,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.93,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (31.07,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (36.20,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.33,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.47,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.60,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.73,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.87,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 5 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-3-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-3-expected.txt
index 52ecc14..812db2d 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-3-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-3-expected.txt
@@ -1,14 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 330x95
-    RenderSVGContainer {g} at (0,0) size 330x95
+  RenderSVGRoot {svg} at (50,0) size 260x70
+    RenderSVGContainer {g} at (150,0) size 85x70
+      RenderPath {svg:line} at (150,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M31.07,0.00 L31.07,14.00"]
+      RenderPath {svg:line} at (225,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M46.33,0.00 L46.33,14.00"]
       RenderPath {svg:rect} at (155,0) size 80x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M31.07,0.00 L46.33,0.00 L46.33,13.00 L31.07,13.00 Z"]
-      RenderSVGText {svg:text} at (0,27) size 132x10 contains 1 chunk(s)
-        RenderSVGInlineText {#text} at (0,0) size 132x10
-          chunk 1 text run 1 at (0.00,35.00) startOffset 0 endOffset 42 width 132.00: "Expected 'Squ' to be selected, got: ' Squ'"
     RenderSVGText {text} at (10,0) size 52x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 78.00: "Text to Squeeze"
-selection start: position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (15.13,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (19.27,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (22.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (23.53,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.93,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (31.07,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (36.20,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.33,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.47,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.60,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.73,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.87,10.00) startOffset 14 endOffset 15 width 6.00: "e"
+selection start: position 8 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 11 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt
index 6747442..6d37a7c 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-squeeze-4-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x65
-    RenderSVGContainer {g} at (50,0) size 260x65
+  RenderSVGRoot {svg} at (45,0) size 270x70
+    RenderSVGContainer {g} at (45,0) size 270x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (305,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M61.87,0.00 L61.87,14.00"]
       RenderPath {svg:rect} at (50,0) size 260x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L61.87,0.00 L61.87,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 52x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 78.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (15.13,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (19.27,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (22.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (23.53,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.93,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (31.07,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (36.20,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.33,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.47,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.60,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.73,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.87,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 15 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt
index 12cdc83..d4d9957 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-1-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x65
-    RenderSVGContainer {g} at (50,0) size 185x65
+  RenderSVGRoot {svg} at (45,0) size 730x70
+    RenderSVGContainer {g} at (45,0) size 195x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (230,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M47.00,0.00 L47.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 185x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L47.00,0.00 L47.00,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 145x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 70.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (22.33,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (33.67,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (44.00,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (52.33,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (69.00,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.33,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.67,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.00,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.33,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (117.67,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.00,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (137.33,10.00) startOffset 13 endOffset 14 width 6.00: "c"
+        chunk 1 text run 15 at (148.67,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 4 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt
index 78f9cbf..5dde1af 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-2-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x65
-    RenderSVGContainer {g} at (300,0) size 75x65
+  RenderSVGRoot {svg} at (50,0) size 725x70
+    RenderSVGContainer {g} at (300,0) size 80x70
+      RenderPath {svg:line} at (300,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.67,0.00 L60.67,14.00"]
+      RenderPath {svg:line} at (370,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M75.00,0.00 L75.00,14.00"]
       RenderPath {svg:rect} at (300,0) size 75x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M60.67,0.00 L75.00,0.00 L75.00,13.00 L60.67,13.00 Z"]
     RenderSVGText {text} at (10,0) size 145x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 70.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (22.33,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (33.67,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (44.00,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (52.33,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (69.00,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.33,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.67,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.00,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.33,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (117.67,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.00,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (137.33,10.00) startOffset 13 endOffset 14 width 6.00: "c"
+        chunk 1 text run 15 at (148.67,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 5 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt
index 268315c..d2a4f25 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-3-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x65
-    RenderSVGContainer {g} at (440,0) size 125x65
+  RenderSVGRoot {svg} at (50,0) size 725x70
+    RenderSVGContainer {g} at (440,0) size 125x70
+      RenderPath {svg:line} at (440,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M88.67,0.00 L88.67,14.00"]
+      RenderPath {svg:line} at (555,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M112.33,0.00 L112.33,14.00"]
       RenderPath {svg:rect} at (440,0) size 125x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M88.67,0.00 L112.33,0.00 L112.33,13.00 L88.67,13.00 Z"]
     RenderSVGText {text} at (10,0) size 145x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 70.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (22.33,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (33.67,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (44.00,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (52.33,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (69.00,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.33,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.67,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.00,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.33,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (117.67,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.00,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (137.33,10.00) startOffset 13 endOffset 14 width 6.00: "c"
+        chunk 1 text run 15 at (148.67,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 8 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 11 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt
index 84c51cb..456fd83 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacing-stretch-4-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x65
-    RenderSVGContainer {g} at (50,0) size 725x65
+  RenderSVGRoot {svg} at (45,0) size 735x70
+    RenderSVGContainer {g} at (45,0) size 735x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (770,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M154.67,0.00 L154.67,14.00"]
       RenderPath {svg:rect} at (50,0) size 725x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L154.67,0.00 L154.67,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 145x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x13
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 70.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
+        chunk 1 text run 2 at (22.33,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (33.67,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (44.00,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (52.33,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.67,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (69.00,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.33,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.67,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.00,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.33,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (117.67,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.00,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (137.33,10.00) startOffset 13 endOffset 14 width 6.00: "c"
+        chunk 1 text run 15 at (148.67,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 15 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt
index d7c94c0..35a3280 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 250x65
-    RenderSVGContainer {g} at (50,0) size 70x65
+  RenderSVGRoot {svg} at (45,0) size 255x70
+    RenderSVGContainer {g} at (45,0) size 75x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (110,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M23.46,0.00 L23.46,14.00"]
       RenderPath {svg:rect} at (50,0) size 70x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L23.46,0.00 L23.46,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 50x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 50x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt
index cfd16c5..a4a391c 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 250x65
-    RenderSVGContainer {g} at (125,0) size 35x65
+  RenderSVGRoot {svg} at (50,0) size 250x70
+    RenderSVGContainer {g} at (120,0) size 40x70
+      RenderPath {svg:line} at (120,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M25.38,0.00 L25.38,14.00"]
+      RenderPath {svg:line} at (150,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M31.15,0.00 L31.15,14.00"]
       RenderPath {svg:rect} at (125,0) size 35x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M25.38,0.00 L31.15,0.00 L31.15,13.00 L25.38,13.00 Z"]
     RenderSVGText {text} at (10,0) size 50x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 50x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt
index 68ee53f..64ba1d2 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 250x65
-    RenderSVGContainer {g} at (165,0) size 65x65
+  RenderSVGRoot {svg} at (50,0) size 250x70
+    RenderSVGContainer {g} at (160,0) size 70x70
+      RenderPath {svg:line} at (160,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M33.08,0.00 L33.08,14.00"]
+      RenderPath {svg:line} at (220,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M45.26,0.00 L45.26,14.00"]
       RenderPath {svg:rect} at (165,0) size 65x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M33.08,0.00 L45.26,0.00 L45.26,13.00 L33.08,13.00 Z"]
     RenderSVGText {text} at (10,0) size 50x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 50x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt
index 62f2f7d..83fc72c 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 250x65
-    RenderSVGContainer {g} at (50,0) size 250x65
+  RenderSVGRoot {svg} at (45,0) size 260x70
+    RenderSVGContainer {g} at (45,0) size 260x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (295,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.00,0.00 L60.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 250x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L60.00,0.00 L60.00,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 50x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 50x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt
index 7066b6c..b5d17d3 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 700x65
-    RenderSVGContainer {g} at (50,0) size 210x65
+  RenderSVGRoot {svg} at (45,0) size 705x70
+    RenderSVGContainer {g} at (45,0) size 220x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (255,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M52.00,0.00 L52.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 210x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L52.00,0.00 L52.00,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 140x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 140x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt
index 5cf2bfd..ff8b996 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 700x65
-    RenderSVGContainer {g} at (290,0) size 90x65
+  RenderSVGRoot {svg} at (50,0) size 700x70
+    RenderSVGContainer {g} at (285,0) size 100x70
+      RenderPath {svg:line} at (285,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M58.00,0.00 L58.00,14.00"]
+      RenderPath {svg:line} at (375,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M76.00,0.00 L76.00,14.00"]
       RenderPath {svg:rect} at (290,0) size 90x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M58.00,0.00 L76.00,0.00 L76.00,13.00 L58.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 140x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 140x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt
index e6e1038..f23e8fa 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 700x65
-    RenderSVGContainer {g} at (410,0) size 130x65
+  RenderSVGRoot {svg} at (50,0) size 700x70
+    RenderSVGContainer {g} at (405,0) size 140x70
+      RenderPath {svg:line} at (405,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M82.00,0.00 L82.00,14.00"]
+      RenderPath {svg:line} at (535,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M108.00,0.00 L108.00,14.00"]
       RenderPath {svg:rect} at (410,0) size 130x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M82.00,0.00 L108.00,0.00 L108.00,13.00 L82.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 140x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 140x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt
index b12bc24..b4c128e 100644
--- a/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 700x65
-    RenderSVGContainer {g} at (50,0) size 700x65
+  RenderSVGRoot {svg} at (45,0) size 710x70
+    RenderSVGContainer {g} at (45,0) size 710x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (745,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M150.00,0.00 L150.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 700x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L150.00,0.00 L150.00,13.00 L10.00,13.00 Z"]
     RenderSVGText {text} at (10,0) size 140x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 140x13
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-1-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-1-expected.txt
index f018733..cbd5a84 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-1-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-1-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (50,0) size 185x65
+  RenderSVGRoot {svg} at (45,0) size 380x70
+    RenderSVGContainer {g} at (45,0) size 195x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (230,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M47.00,0.00 L47.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 185x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L47.00,0.00 L47.00,13.00 L10.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 75x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 4 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-2-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-2-expected.txt
index 1302d9f..e4c9eab 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-2-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-2-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (200,0) size 85x65
+  RenderSVGRoot {svg} at (50,0) size 375x70
+    RenderSVGContainer {g} at (195,0) size 95x70
+      RenderPath {svg:line} at (195,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M40.00,0.00 L40.00,14.00"]
+      RenderPath {svg:line} at (280,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M57.00,0.00 L57.00,14.00"]
       RenderPath {svg:rect} at (200,0) size 85x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M40.00,0.00 L57.00,0.00 L57.00,13.00 L40.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 75x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
 selection start: position 2 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-3-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-3-expected.txt
index 09a3fed..aa0213c 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-3-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-3-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (300,0) size 30x65
+  RenderSVGRoot {svg} at (50,0) size 375x70
+    RenderSVGContainer {g} at (295,0) size 40x70
+      RenderPath {svg:line} at (295,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.00,0.00 L60.00,14.00"]
+      RenderPath {svg:line} at (325,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M66.00,0.00 L66.00,14.00"]
       RenderPath {svg:rect} at (300,0) size 30x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M60.00,0.00 L66.00,0.00 L66.00,13.00 L60.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 75x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
 selection start: position 8 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 9 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-4-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-4-expected.txt
index 2bf5f78..fe0d3aa 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-4-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-4-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (50,0) size 375x65
+  RenderSVGRoot {svg} at (45,0) size 385x70
+    RenderSVGContainer {g} at (45,0) size 385x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (420,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M85.00,0.00 L85.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 375x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L85.00,0.00 L85.00,13.00 L10.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 75x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 45.00: "is is a test"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 14 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-1-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-1-expected.txt
index 00c5de7..74e6382 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-1-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-1-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (50,0) size 185x65
+  RenderSVGRoot {svg} at (45,0) size 380x70
+    RenderSVGContainer {g} at (45,0) size 195x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (230,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M47.00,0.00 L47.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 185x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L47.00,0.00 L47.00,13.00 L10.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (30,0) size 3x13
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x13
         RenderSVGInlineText {#text} at (33,0) size 10x13
-          chunk 3 text run 2 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (43,0) size 4x13
-        chunk 3 text run 3 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
+        chunk 1 text run 1 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x13
         RenderSVGInlineText {#text} at (47,0) size 12x13
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (59,0) size 3x13
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 13x13
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
 selection start: position 0 of child 0 {#text} of child 7 {text} of child 0 {svg} of document
 selection end:   position 1 of child 0 {#text} of child 2 {tspan} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-2-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-2-expected.txt
index 2cc80a1..9afa7c2 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-2-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-2-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (200,0) size 85x65
+  RenderSVGRoot {svg} at (50,0) size 375x70
+    RenderSVGContainer {g} at (195,0) size 95x70
+      RenderPath {svg:line} at (195,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M40.00,0.00 L40.00,14.00"]
+      RenderPath {svg:line} at (280,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M57.00,0.00 L57.00,14.00"]
       RenderPath {svg:rect} at (200,0) size 85x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M40.00,0.00 L57.00,0.00 L57.00,13.00 L40.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (30,0) size 3x13
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x13
         RenderSVGInlineText {#text} at (33,0) size 10x13
-          chunk 3 text run 2 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (43,0) size 4x13
-        chunk 3 text run 3 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
+        chunk 1 text run 1 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x13
         RenderSVGInlineText {#text} at (47,0) size 12x13
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (59,0) size 3x13
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 13x13
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
 selection start: position 0 of child 0 {#text} of child 1 {tspan} of child 7 {text} of child 0 {svg} of document
 selection end:   position 1 of child 3 {#text} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-3-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-3-expected.txt
index 8677783..4aeb54f 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-3-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-3-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (300,0) size 30x65
+  RenderSVGRoot {svg} at (50,0) size 375x70
+    RenderSVGContainer {g} at (295,0) size 40x70
+      RenderPath {svg:line} at (295,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.00,0.00 L60.00,14.00"]
+      RenderPath {svg:line} at (325,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M66.00,0.00 L66.00,14.00"]
       RenderPath {svg:rect} at (300,0) size 30x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M60.00,0.00 L66.00,0.00 L66.00,13.00 L60.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (30,0) size 3x13
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x13
         RenderSVGInlineText {#text} at (33,0) size 10x13
-          chunk 3 text run 2 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (43,0) size 4x13
-        chunk 3 text run 3 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
+        chunk 1 text run 1 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x13
         RenderSVGInlineText {#text} at (47,0) size 12x13
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (59,0) size 3x13
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 13x13
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
 selection start: position 1 of child 0 {#text} of child 4 {tspan} of child 7 {text} of child 0 {svg} of document
 selection end:   position 2 of child 0 {#text} of child 4 {tspan} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-4-expected.txt b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-4-expected.txt
index 18c59fb..9c20f31 100644
--- a/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-4-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/select-x-list-with-tspans-4-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 375x65
-    RenderSVGContainer {g} at (50,0) size 375x65
+  RenderSVGRoot {svg} at (45,0) size 385x70
+    RenderSVGContainer {g} at (45,0) size 385x70
+      RenderPath {svg:line} at (45,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,14.00"]
+      RenderPath {svg:line} at (420,0) size 10x70 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M85.00,0.00 L85.00,14.00"]
       RenderPath {svg:rect} at (50,0) size 375x65 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L85.00,0.00 L85.00,13.00 L10.00,13.00 Z"]
-    RenderSVGText {text} at (10,0) size 75x13 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 75x13 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x13
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 7.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (30,0) size 3x13
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 3.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x13
         RenderSVGInlineText {#text} at (33,0) size 10x13
-          chunk 3 text run 2 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (43.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (43,0) size 4x13
-        chunk 3 text run 3 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
+        chunk 1 text run 1 at (53.00,10.00) startOffset 0 endOffset 1 width 4.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x13
         RenderSVGInlineText {#text} at (47,0) size 12x13
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x13
         RenderSVGInlineText {#text} at (59,0) size 3x13
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 13x13
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 13.00: "est"
 selection start: position 0 of child 0 {#text} of child 7 {text} of child 0 {svg} of document
 selection end:   position 3 of child 6 {#text} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/gtk/svg/text/text-hkern-expected.txt b/LayoutTests/platform/gtk/svg/text/text-hkern-expected.txt
index 9fb752d..d8e0d36 100644
--- a/LayoutTests/platform/gtk/svg/text/text-hkern-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/text-hkern-expected.txt
@@ -1,22 +1,29 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (4,29) size 141x115
+  RenderSVGRoot {svg} at (4,29) size 142x115
     RenderSVGHiddenContainer {defs} at (0,0) size 0x0
       RenderPath {path} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [data="M2.50,70.00 L200.00,70.00"]
     RenderSVGText {text} at (0,-8) size 70x10 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 70x10
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 4 width 25.00: "1234"
-    RenderSVGText {text} at (0,-8) size 55x10 contains 1 chunk(s)
+        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 1 width 2.50: "1"
+        chunk 1 text run 2 at (17.50,0.00) startOffset 1 endOffset 2 width 5.00: "2"
+        chunk 1 text run 3 at (37.50,0.00) startOffset 2 endOffset 3 width 7.50: "3"
+        chunk 1 text run 4 at (60.00,0.00) startOffset 3 endOffset 4 width 10.00: "4"
+    RenderSVGText {text} at (0,-8) size 40x10 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 3x10
         chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 1 width 2.50: "1"
       RenderSVGTSpan {tspan} at (0,0) size 28x10
         RenderSVGInlineText {#text} at (2,0) size 28x10
-          chunk 1 text run 2 at (2.50,0.00) startOffset 0 endOffset 2 width 12.50: "23"
-      RenderSVGInlineText {#text} at (45,0) size 10x10
-        chunk 1 text run 3 at (45.00,0.00) startOffset 0 endOffset 1 width 10.00: "4"
-    RenderSVGText {text} at (2,62) size 26x10 contains 1 chunk(s)
-      RenderSVGTextPath {textPath} at (0,0) size 26x10
-        RenderSVGInlineText {#text} at (0,0) size 26x10
-          chunk 1 text run 1 at (3.75,70.00) startOffset 0 endOffset 4 width 25.00: "1234"
+          chunk 1 text run 1 at (2.50,0.00) startOffset 0 endOffset 1 width 5.00: "2"
+          chunk 1 text run 2 at (22.50,0.00) startOffset 1 endOffset 2 width 7.50: "3"
+      RenderSVGInlineText {#text} at (30,0) size 10x10
+        chunk 1 text run 1 at (30.00,0.00) startOffset 0 endOffset 1 width 10.00: "4"
+    RenderSVGText {text} at (2,62) size 71x10 contains 1 chunk(s)
+      RenderSVGTextPath {textPath} at (0,0) size 71x10
+        RenderSVGInlineText {#text} at (0,0) size 71x10
+          chunk 1 text run 1 at (3.75,70.00) startOffset 0 endOffset 1 width 2.50: "1"
+          chunk 1 text run 2 at (22.50,70.00) startOffset 1 endOffset 2 width 5.00: "2"
+          chunk 1 text run 3 at (43.75,70.00) startOffset 2 endOffset 3 width 7.50: "3"
+          chunk 1 text run 4 at (67.50,70.00) startOffset 3 endOffset 4 width 10.00: "4"
       RenderSVGInlineText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/gtk/svg/text/text-hkern-on-vertical-text-expected.txt b/LayoutTests/platform/gtk/svg/text/text-hkern-on-vertical-text-expected.txt
index 625f3a4..3fbe5bd 100644
--- a/LayoutTests/platform/gtk/svg/text/text-hkern-on-vertical-text-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/text-hkern-on-vertical-text-expected.txt
@@ -6,4 +6,7 @@ layer at (0,0) size 800x600
     RenderSVGContainer {g} at (10,90) size 20x80
       RenderSVGText {text} at (-5,0) size 10x40 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (0,0) size 10x40
-          chunk 1 (vertical) text run 1 at (-5.00,8.00) startOffset 0 endOffset 4 height 40.00: "1234"
+          chunk 1 (vertical) text run 1 at (-3.00,0.00) startOffset 0 endOffset 1 height 10.00: "1"
+          chunk 1 (vertical) text run 2 at (-3.00,10.00) startOffset 1 endOffset 2 height 10.00: "2"
+          chunk 1 (vertical) text run 3 at (-3.00,20.00) startOffset 2 endOffset 3 height 10.00: "3"
+          chunk 1 (vertical) text run 4 at (-3.00,30.00) startOffset 3 endOffset 4 height 10.00: "4"
diff --git a/LayoutTests/platform/gtk/svg/text/text-vkern-expected.txt b/LayoutTests/platform/gtk/svg/text/text-vkern-expected.txt
index 9a2e860..075feac 100644
--- a/LayoutTests/platform/gtk/svg/text/text-vkern-expected.txt
+++ b/LayoutTests/platform/gtk/svg/text/text-vkern-expected.txt
@@ -10,12 +10,16 @@ layer at (0,0) size 800x600
     RenderSVGContainer {g} at (10,90) size 70x116
       RenderSVGText {text} at (-5,0) size 10x58 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (0,0) size 10x58
-          chunk 1 (vertical) text run 1 at (-5.00,8.00) startOffset 0 endOffset 4 height 40.00: "1234"
-      RenderSVGText {text} at (-5,0) size 10x52 contains 1 chunk(s)
+          chunk 1 (vertical) text run 1 at (-3.00,0.00) startOffset 0 endOffset 1 height 10.00: "1"
+          chunk 1 (vertical) text run 2 at (-3.00,16.00) startOffset 1 endOffset 2 height 10.00: "2"
+          chunk 1 (vertical) text run 3 at (-3.00,32.00) startOffset 2 endOffset 3 height 10.00: "3"
+          chunk 1 (vertical) text run 4 at (-3.00,48.00) startOffset 3 endOffset 4 height 10.00: "4"
+      RenderSVGText {text} at (-5,0) size 10x46 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (3,0) size 4x10
-          chunk 1 (vertical) text run 1 at (-1.25,8.00) startOffset 0 endOffset 1 height 10.00: "1"
+          chunk 1 (vertical) text run 1 at (-3.00,0.00) startOffset 0 endOffset 1 height 10.00: "1"
         RenderSVGTSpan {tspan} at (0,0) size 8x26
           RenderSVGInlineText {#text} at (1,10) size 8x26
-            chunk 1 (vertical) text run 2 at (-3.75,18.00) startOffset 0 endOffset 2 height 20.00: "23"
-        RenderSVGInlineText {#text} at (0,42) size 10x10
-          chunk 1 (vertical) text run 3 at (-5.00,50.00) startOffset 0 endOffset 1 height 10.00: "4"
+            chunk 1 (vertical) text run 1 at (-3.00,10.00) startOffset 0 endOffset 1 height 10.00: "2"
+            chunk 1 (vertical) text run 2 at (-3.00,26.00) startOffset 1 endOffset 2 height 10.00: "3"
+        RenderSVGInlineText {#text} at (0,36) size 10x10
+          chunk 1 (vertical) text run 1 at (-3.00,36.00) startOffset 0 endOffset 1 height 10.00: "4"
diff --git a/LayoutTests/platform/qt/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt b/LayoutTests/platform/qt/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt
index f48e58f..d73a38f 100644
--- a/LayoutTests/platform/qt/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt
+++ b/LayoutTests/platform/qt/svg/W3C-SVG-1.1/fonts-glyph-02-t-expected.txt
@@ -2,15 +2,15 @@ layer at (0,0) size 480x360
   RenderView at (0,0) size 480x360
 layer at (0,0) size 480x360
   RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGContainer {g} at (100,32) size 224x195
+    RenderSVGContainer {g} at (100,32) size 224x199
       RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGContainer {g} at (100,32) size 184x80
-        RenderSVGText {text} at (100,32) size 184x80 contains 1 chunk(s)
-          RenderSVGInlineText {#text} at (0,0) size 184x80
+      RenderSVGContainer {g} at (100,32) size 184x84
+        RenderSVGText {text} at (100,32) size 184x84 contains 1 chunk(s)
+          RenderSVGInlineText {#text} at (0,0) size 184x84
             chunk 1 text run 1 at (100.00,100.00) startOffset 0 endOffset 5 width 184.00 RTL: "\x{69A} \x{69A}\x{69A}\x{69A}"
-      RenderSVGContainer {g} at (100,114) size 224x113
-        RenderSVGText {text} at (100,114) size 224x113 contains 1 chunk(s)
-          RenderSVGInlineText {#text} at (0,0) size 224x113
+      RenderSVGContainer {g} at (100,114) size 224x117
+        RenderSVGText {text} at (100,114) size 224x117 contains 1 chunk(s)
+          RenderSVGInlineText {#text} at (0,0) size 224x117
             chunk 1 text run 1 at (100.00,200.00) startOffset 0 endOffset 5 width 223.92 RTL: "\x{62E} \x{62E}\x{62E}\x{62E}"
     RenderSVGText {text} at (10,301) size 270x52 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 270x52
diff --git a/LayoutTests/platform/qt/svg/batik/text/textDecoration-expected.txt b/LayoutTests/platform/qt/svg/batik/text/textDecoration-expected.txt
index b4c49d8..2f771b6 100644
--- a/LayoutTests/platform/qt/svg/batik/text/textDecoration-expected.txt
+++ b/LayoutTests/platform/qt/svg/batik/text/textDecoration-expected.txt
@@ -56,43 +56,43 @@ layer at (0,0) size 450x500
             chunk 1 text run 1 at (50.00,300.00) startOffset 0 endOffset 12 width 108.00: "Decorations "
           RenderSVGTSpan {tspan} at (0,0) size 38x26
             RenderSVGInlineText {#text} at (108,0) size 38x26
-              chunk 1 text run 2 at (158.00,290.00) startOffset 0 endOffset 4 width 38.00: "with"
+              chunk 1 text run 1 at (158.00,290.00) startOffset 0 endOffset 4 width 38.00: "with"
           RenderSVGTSpan {tspan} at (0,0) size 52x26
             RenderSVGInlineText {#text} at (146,10) size 52x26
-              chunk 1 text run 3 at (196.00,300.00) startOffset 0 endOffset 6 width 52.00: " tspan"
+              chunk 1 text run 1 at (196.00,300.00) startOffset 0 endOffset 6 width 52.00: " tspan"
         RenderSVGText {text} at (50,320) size 241x26 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 151x26
             chunk 1 text run 1 at (50.00,340.00) startOffset 0 endOffset 17 width 151.00: "Transparent text "
           RenderSVGTSpan {tspan} at (0,0) size 38x26
             RenderSVGInlineText {#text} at (151,0) size 38x26
-              chunk 1 text run 2 at (201.00,340.00) startOffset 0 endOffset 4 width 38.00: "with"
+              chunk 1 text run 1 at (201.00,340.00) startOffset 0 endOffset 4 width 38.00: "with"
           RenderSVGInlineText {#text} at (189,0) size 52x26
-            chunk 1 text run 3 at (239.00,340.00) startOffset 0 endOffset 6 width 52.00: " tspan"
+            chunk 1 text run 1 at (239.00,340.00) startOffset 0 endOffset 6 width 52.00: " tspan"
         RenderSVGText {text} at (50,360) size 233x26 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 58x26
             chunk 1 text run 1 at (50.00,380.00) startOffset 0 endOffset 6 width 58.00: "Tspan "
           RenderSVGTSpan {tspan} at (0,0) size 78x26
             RenderSVGInlineText {#text} at (58,0) size 78x26
-              chunk 1 text run 2 at (108.00,380.00) startOffset 0 endOffset 8 width 78.00: "with own"
+              chunk 1 text run 1 at (108.00,380.00) startOffset 0 endOffset 8 width 78.00: "with own"
           RenderSVGInlineText {#text} at (136,0) size 97x26
-            chunk 1 text run 3 at (186.00,380.00) startOffset 0 endOffset 11 width 97.00: " decoration"
+            chunk 1 text run 1 at (186.00,380.00) startOffset 0 endOffset 11 width 97.00: " decoration"
         RenderSVGText {text} at (50,400) size 219x26 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 58x26
             chunk 1 text run 1 at (50.00,420.00) startOffset 0 endOffset 6 width 58.00: "Tspan "
           RenderSVGTSpan {tspan} at (0,0) size 64x26
             RenderSVGInlineText {#text} at (58,0) size 64x26
-              chunk 1 text run 2 at (108.00,420.00) startOffset 0 endOffset 7 width 64.00: "with no"
+              chunk 1 text run 1 at (108.00,420.00) startOffset 0 endOffset 7 width 64.00: "with no"
           RenderSVGInlineText {#text} at (122,0) size 97x26
-            chunk 1 text run 3 at (172.00,420.00) startOffset 0 endOffset 11 width 97.00: " decoration"
+            chunk 1 text run 1 at (172.00,420.00) startOffset 0 endOffset 11 width 97.00: " decoration"
         RenderSVGText {text} at (50,440) size 215x26 contains 1 chunk(s)
           RenderSVGInlineText {#text} at (0,0) size 63x26
             chunk 1 text run 1 at (50.00,460.00) startOffset 0 endOffset 7 width 63.00: "Nested "
           RenderSVGTSpan {tspan} at (0,0) size 152x26
             RenderSVGInlineText {#text} at (63,0) size 52x26
-              chunk 1 text run 2 at (113.00,460.00) startOffset 0 endOffset 6 width 52.00: "tspan "
+              chunk 1 text run 1 at (113.00,460.00) startOffset 0 endOffset 6 width 52.00: "tspan "
             RenderSVGTSpan {tspan} at (0,0) size 48x26
               RenderSVGInlineText {#text} at (115,0) size 48x26
-                chunk 1 text run 3 at (165.00,460.00) startOffset 0 endOffset 5 width 48.00: "decor"
+                chunk 1 text run 1 at (165.00,460.00) startOffset 0 endOffset 5 width 48.00: "decor"
             RenderSVGInlineText {#text} at (163,0) size 52x26
-              chunk 1 text run 4 at (213.00,460.00) startOffset 0 endOffset 6 width 52.00: "ations"
+              chunk 1 text run 1 at (213.00,460.00) startOffset 0 endOffset 6 width 52.00: "ations"
     RenderSVGContainer {use} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/svg/custom/broken-internal-references-expected.txt b/LayoutTests/platform/qt/svg/custom/broken-internal-references-expected.txt
index 19cfef6..27f496e 100644
--- a/LayoutTests/platform/qt/svg/custom/broken-internal-references-expected.txt
+++ b/LayoutTests/platform/qt/svg/custom/broken-internal-references-expected.txt
@@ -18,7 +18,6 @@ layer at (0,0) size 800x600
     RenderSVGText {text} at (0,0) size 0x0 contains 1 chunk(s)
       RenderSVGTextPath {textPath} at (0,0) size 0x0
         RenderSVGInlineText {#text} at (0,0) size 0x0
-          chunk 1 text run 1 at (340282346638528859811704183484516925440.00,340282346638528859811704183484516925440.00) startOffset 0 endOffset 18 width 328.00: "Shoud not be shown"
       RenderSVGInlineText {#text} at (0,0) size 0x0
     RenderSVGText {text}
       RenderSVGInline {tref} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/svg/filters/filter-on-filter-for-text-expected.txt b/LayoutTests/platform/qt/svg/filters/filter-on-filter-for-text-expected.txt
index 2bf7aa7..1597e7f 100644
--- a/LayoutTests/platform/qt/svg/filters/filter-on-filter-for-text-expected.txt
+++ b/LayoutTests/platform/qt/svg/filters/filter-on-filter-for-text-expected.txt
@@ -14,7 +14,7 @@ layer at (0,0) size 800x600
       RenderSVGTSpan {tspan} at (0,0) size 70x26
         RenderSVGInlineText {#text} at (142,0) size 70x26
           [filter="filter"] RenderSVGResourceFilter {filter} at (0,0) size 0x0
-          chunk 1 text run 2 at (172.00,30.00) startOffset 0 endOffset 9 width 70.00: "on filter"
+          chunk 1 text run 1 at (172.00,30.00) startOffset 0 endOffset 9 width 70.00: "on filter"
       RenderSVGInlineText {#text} at (212,0) size 5x26
         [filter="filter"] RenderSVGResourceFilter {filter} at (0,0) size 0x0
-        chunk 1 text run 3 at (242.00,30.00) startOffset 0 endOffset 1 width 5.00: "."
+        chunk 1 text run 1 at (242.00,30.00) startOffset 0 endOffset 1 width 5.00: "."
diff --git a/LayoutTests/platform/qt/svg/filters/filter-on-tspan-expected.txt b/LayoutTests/platform/qt/svg/filters/filter-on-tspan-expected.txt
index 7ffdaac..0d6a993 100644
--- a/LayoutTests/platform/qt/svg/filters/filter-on-tspan-expected.txt
+++ b/LayoutTests/platform/qt/svg/filters/filter-on-tspan-expected.txt
@@ -11,6 +11,6 @@ layer at (0,0) size 800x600
       RenderSVGTSpan {tspan} at (0,0) size 29x21
         RenderSVGInlineText {#text} at (70,0) size 29x21
           [filter="filter"] RenderSVGResourceFilter {filter} at (0,0) size 0x0
-          chunk 1 text run 2 at (170.00,100.00) startOffset 0 endOffset 4 width 29.00: "Test"
+          chunk 1 text run 1 at (170.00,100.00) startOffset 0 endOffset 4 width 29.00: "Test"
       RenderSVGInlineText {#text} at (99,0) size 4x21
-        chunk 1 text run 3 at (199.00,100.00) startOffset 0 endOffset 1 width 4.00: "."
+        chunk 1 text run 1 at (199.00,100.00) startOffset 0 endOffset 1 width 4.00: "."
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-1-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-1-expected.txt
index d572205..96f7b13 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-1-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-1-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x60
-    RenderSVGContainer {g} at (50,0) size 70x60
+  RenderSVGRoot {svg} at (45,0) size 265x65
+    RenderSVGContainer {g} at (45,0) size 75x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (110,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M23.40,0.00 L23.40,13.00"]
       RenderPath {svg:rect} at (50,0) size 70x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L23.40,0.00 L23.40,12.00 L10.00,12.00 L10.00,0.00"]
     RenderSVGText {text} at (10,0) size 52x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 77.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (14.20,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (18.40,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (21.60,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (22.80,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.00,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.20,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.40,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (30.60,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (35.80,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.00,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.20,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.40,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.60,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.80,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 3 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-2-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-2-expected.txt
index 51c6463..2bdcf4f 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-2-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-2-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x60
-    RenderSVGContainer {g} at (120,0) size 40x60
+  RenderSVGRoot {svg} at (50,0) size 260x65
+    RenderSVGContainer {g} at (115,0) size 45x65
+      RenderPath {svg:line} at (115,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M24.00,0.00 L24.00,13.00"]
+      RenderPath {svg:line} at (150,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M31.20,0.00 L31.20,13.00"]
       RenderPath {svg:rect} at (120,0) size 40x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M24.00,0.00 L31.20,0.00 L31.20,12.00 L24.00,12.00 L24.00,0.00"]
     RenderSVGText {text} at (10,0) size 52x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 77.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (14.20,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (18.40,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (21.60,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (22.80,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.00,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.20,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.40,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (30.60,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (35.80,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.00,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.20,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.40,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.60,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.80,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 5 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-3-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-3-expected.txt
index ca84f06..0293247 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-3-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-3-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x60
-    RenderSVGContainer {g} at (150,0) size 80x60
+  RenderSVGRoot {svg} at (50,0) size 260x65
+    RenderSVGContainer {g} at (150,0) size 85x65
+      RenderPath {svg:line} at (150,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M30.60,0.00 L30.60,13.00"]
+      RenderPath {svg:line} at (225,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M46.00,0.00 L46.00,13.00"]
       RenderPath {svg:rect} at (150,0) size 80x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M30.60,0.00 L46.00,0.00 L46.00,12.00 L30.60,12.00 L30.60,0.00"]
     RenderSVGText {text} at (10,0) size 52x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 77.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (14.20,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (18.40,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (21.60,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (22.80,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.00,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.20,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.40,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (30.60,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (35.80,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.00,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.20,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.40,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.60,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.80,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 8 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 11 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-4-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-4-expected.txt
index e252538..84a60b0 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-4-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-squeeze-4-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 260x60
-    RenderSVGContainer {g} at (50,0) size 260x60
+  RenderSVGRoot {svg} at (45,0) size 270x65
+    RenderSVGContainer {g} at (45,0) size 270x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (305,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M61.80,0.00 L61.80,13.00"]
       RenderPath {svg:rect} at (50,0) size 260x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L61.80,0.00 L61.80,12.00 L10.00,12.00 L10.00,0.00"]
     RenderSVGText {text} at (10,0) size 52x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 52x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 77.00: "Text to Squeeze"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (14.20,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (18.40,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (21.60,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (22.80,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (24.00,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (25.20,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (29.40,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (30.60,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (35.80,10.00) startOffset 9 endOffset 10 width 6.00: "q"
+        chunk 1 text run 11 at (40.00,10.00) startOffset 10 endOffset 11 width 6.00: "u"
+        chunk 1 text run 12 at (44.20,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (48.40,10.00) startOffset 12 endOffset 13 width 6.00: "e"
+        chunk 1 text run 14 at (52.60,10.00) startOffset 13 endOffset 14 width 5.00: "z"
+        chunk 1 text run 15 at (55.80,10.00) startOffset 14 endOffset 15 width 6.00: "e"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 15 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-1-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-1-expected.txt
index 626d9c4..028771d 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-1-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-1-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x60
-    RenderSVGContainer {g} at (50,0) size 185x60
+  RenderSVGRoot {svg} at (45,0) size 730x65
+    RenderSVGContainer {g} at (45,0) size 190x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (225,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M46.40,0.00 L46.40,13.00"]
       RenderPath {svg:rect} at (50,0) size 185x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L46.40,0.00 L46.40,12.00 L10.00,12.00 L10.00,0.00"]
     RenderSVGText {text} at (10,0) size 145x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 68.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (21.47,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (32.93,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (43.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (51.87,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.33,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (68.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.27,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.73,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.20,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.67,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (118.13,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.60,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (138.07,10.00) startOffset 13 endOffset 14 width 5.00: "c"
+        chunk 1 text run 15 at (148.53,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 4 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-2-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-2-expected.txt
index fbc98b6..aaba053 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-2-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-2-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x60
-    RenderSVGContainer {g} at (300,0) size 75x60
+  RenderSVGRoot {svg} at (50,0) size 725x65
+    RenderSVGContainer {g} at (295,0) size 85x65
+      RenderPath {svg:line} at (295,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.33,0.00 L60.33,13.00"]
+      RenderPath {svg:line} at (370,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M74.80,0.00 L74.80,13.00"]
       RenderPath {svg:rect} at (300,0) size 75x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M60.33,0.00 L74.80,0.00 L74.80,12.00 L60.33,12.00 L60.33,0.00"]
     RenderSVGText {text} at (10,0) size 145x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 68.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (21.47,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (32.93,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (43.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (51.87,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.33,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (68.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.27,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.73,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.20,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.67,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (118.13,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.60,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (138.07,10.00) startOffset 13 endOffset 14 width 5.00: "c"
+        chunk 1 text run 15 at (148.53,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 5 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-3-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-3-expected.txt
index 39fb2b2..eed13c5 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-3-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-3-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x60
-    RenderSVGContainer {g} at (440,0) size 125x60
+  RenderSVGRoot {svg} at (50,0) size 725x65
+    RenderSVGContainer {g} at (440,0) size 130x65
+      RenderPath {svg:line} at (440,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M88.73,0.00 L88.73,13.00"]
+      RenderPath {svg:line} at (560,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M112.67,0.00 L112.67,13.00"]
       RenderPath {svg:rect} at (440,0) size 125x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M88.73,0.00 L112.67,0.00 L112.67,12.00 L88.73,12.00 L88.73,0.00"]
     RenderSVGText {text} at (10,0) size 145x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 68.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (21.47,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (32.93,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (43.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (51.87,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.33,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (68.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.27,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.73,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.20,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.67,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (118.13,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.60,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (138.07,10.00) startOffset 13 endOffset 14 width 5.00: "c"
+        chunk 1 text run 15 at (148.53,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 8 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 11 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-4-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-4-expected.txt
index b8cf85e..07369ce 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-4-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacing-stretch-4-expected.txt
@@ -1,11 +1,27 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 725x60
-    RenderSVGContainer {g} at (50,0) size 725x60
+  RenderSVGRoot {svg} at (45,0) size 735x65
+    RenderSVGContainer {g} at (45,0) size 735x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (770,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M154.53,0.00 L154.53,13.00"]
       RenderPath {svg:rect} at (50,0) size 725x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L154.53,0.00 L154.53,12.00 L10.00,12.00 L10.00,0.00"]
     RenderSVGText {text} at (10,0) size 145x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 145x12
-        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 15 width 68.00: "Text to Stretch"
+        chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
+        chunk 1 text run 2 at (21.47,10.00) startOffset 1 endOffset 2 width 6.00: "e"
+        chunk 1 text run 3 at (32.93,10.00) startOffset 2 endOffset 3 width 5.00: "x"
+        chunk 1 text run 4 at (43.40,10.00) startOffset 3 endOffset 4 width 3.00: "t"
+        chunk 1 text run 5 at (51.87,10.00) startOffset 4 endOffset 5 width 3.00: " "
+        chunk 1 text run 6 at (60.33,10.00) startOffset 5 endOffset 6 width 3.00: "t"
+        chunk 1 text run 7 at (68.80,10.00) startOffset 6 endOffset 7 width 6.00: "o"
+        chunk 1 text run 8 at (80.27,10.00) startOffset 7 endOffset 8 width 3.00: " "
+        chunk 1 text run 9 at (88.73,10.00) startOffset 8 endOffset 9 width 7.00: "S"
+        chunk 1 text run 10 at (101.20,10.00) startOffset 9 endOffset 10 width 3.00: "t"
+        chunk 1 text run 11 at (109.67,10.00) startOffset 10 endOffset 11 width 3.00: "r"
+        chunk 1 text run 12 at (118.13,10.00) startOffset 11 endOffset 12 width 6.00: "e"
+        chunk 1 text run 13 at (129.60,10.00) startOffset 12 endOffset 13 width 3.00: "t"
+        chunk 1 text run 14 at (138.07,10.00) startOffset 13 endOffset 14 width 5.00: "c"
+        chunk 1 text run 15 at (148.53,10.00) startOffset 14 endOffset 15 width 6.00: "h"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 15 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt b/LayoutTests/platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt
index 3702c2a..07bbbd5 100644
--- a/LayoutTests/platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-4-expected.txt
@@ -1,8 +1,10 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 700x60
-    RenderSVGContainer {g} at (50,0) size 700x60
+  RenderSVGRoot {svg} at (45,0) size 710x65
+    RenderSVGContainer {g} at (45,0) size 710x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (745,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M150.00,0.00 L150.00,13.00"]
       RenderPath {svg:rect} at (50,0) size 700x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L150.00,0.00 L150.00,12.00 L10.00,12.00 L10.00,0.00"]
     RenderSVGText {text} at (10,0) size 140x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 140x12
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-1-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-1-expected.txt
index 3e8d4a1..6ddfe3a 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-1-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-1-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (50,0) size 185x60
+  RenderSVGRoot {svg} at (45,0) size 385x65
+    RenderSVGContainer {g} at (45,0) size 195x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (230,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M47.00,0.00 L47.00,13.00"]
       RenderPath {svg:rect} at (50,0) size 185x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L47.00,0.00 L47.00,12.00 L10.00,12.00 L10.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 76x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 4 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-2-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-2-expected.txt
index f1c002a..0ad5f62 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-2-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-2-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (200,0) size 85x60
+  RenderSVGRoot {svg} at (50,0) size 380x65
+    RenderSVGContainer {g} at (195,0) size 95x65
+      RenderPath {svg:line} at (195,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M40.00,0.00 L40.00,13.00"]
+      RenderPath {svg:line} at (280,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M57.00,0.00 L57.00,13.00"]
       RenderPath {svg:rect} at (200,0) size 85x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M40.00,0.00 L57.00,0.00 L57.00,12.00 L40.00,12.00 L40.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 76x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
 selection start: position 2 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 7 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-3-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-3-expected.txt
index 6cc8669..1e39198 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-3-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-3-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (300,0) size 30x60
+  RenderSVGRoot {svg} at (50,0) size 380x65
+    RenderSVGContainer {g} at (295,0) size 40x65
+      RenderPath {svg:line} at (295,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.00,0.00 L60.00,13.00"]
+      RenderPath {svg:line} at (325,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M66.00,0.00 L66.00,13.00"]
       RenderPath {svg:rect} at (300,0) size 30x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M60.00,0.00 L66.00,0.00 L66.00,12.00 L60.00,12.00 L60.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 76x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
 selection start: position 8 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 9 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-4-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-4-expected.txt
index 12fa912..b18afb1 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-4-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-4-expected.txt
@@ -1,13 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (50,0) size 380x60
+  RenderSVGRoot {svg} at (45,0) size 390x65
+    RenderSVGContainer {g} at (45,0) size 390x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (425,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M86.00,0.00 L86.00,13.00"]
       RenderPath {svg:rect} at (50,0) size 380x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L86.00,0.00 L86.00,12.00 L10.00,12.00 L10.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 76x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
-        chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 12 width 46.00: "is is a test"
 selection start: position 0 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
 selection end:   position 14 of child 0 {#text} of child 5 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-1-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-1-expected.txt
index 0895b41..d0e78dc 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-1-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-1-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (50,0) size 185x60
+  RenderSVGRoot {svg} at (45,0) size 385x65
+    RenderSVGContainer {g} at (45,0) size 195x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (230,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M47.00,0.00 L47.00,13.00"]
       RenderPath {svg:rect} at (50,0) size 185x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L47.00,0.00 L47.00,12.00 L10.00,12.00 L10.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 2x12
         RenderSVGInlineText {#text} at (30,0) size 2x12
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x12
         RenderSVGInlineText {#text} at (32,0) size 10x12
-          chunk 3 text run 2 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (42,0) size 5x12
-        chunk 3 text run 3 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
+        chunk 1 text run 1 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x12
         RenderSVGInlineText {#text} at (47,0) size 12x12
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x12
         RenderSVGInlineText {#text} at (59,0) size 3x12
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 14x12
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
 selection start: position 0 of child 0 {#text} of child 7 {text} of child 0 {svg} of document
 selection end:   position 1 of child 0 {#text} of child 2 {tspan} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-2-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-2-expected.txt
index 9211b61..a78f217 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-2-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-2-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (200,0) size 85x60
+  RenderSVGRoot {svg} at (50,0) size 380x65
+    RenderSVGContainer {g} at (195,0) size 95x65
+      RenderPath {svg:line} at (195,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M40.00,0.00 L40.00,13.00"]
+      RenderPath {svg:line} at (280,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M57.00,0.00 L57.00,13.00"]
       RenderPath {svg:rect} at (200,0) size 85x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M40.00,0.00 L57.00,0.00 L57.00,12.00 L40.00,12.00 L40.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 2x12
         RenderSVGInlineText {#text} at (30,0) size 2x12
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x12
         RenderSVGInlineText {#text} at (32,0) size 10x12
-          chunk 3 text run 2 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (42,0) size 5x12
-        chunk 3 text run 3 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
+        chunk 1 text run 1 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x12
         RenderSVGInlineText {#text} at (47,0) size 12x12
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x12
         RenderSVGInlineText {#text} at (59,0) size 3x12
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 14x12
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
 selection start: position 0 of child 0 {#text} of child 1 {tspan} of child 7 {text} of child 0 {svg} of document
 selection end:   position 1 of child 3 {#text} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-3-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-3-expected.txt
index 71ff9a5..2bea070 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-3-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-3-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (300,0) size 30x60
+  RenderSVGRoot {svg} at (50,0) size 380x65
+    RenderSVGContainer {g} at (295,0) size 40x65
+      RenderPath {svg:line} at (295,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M60.00,0.00 L60.00,13.00"]
+      RenderPath {svg:line} at (325,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M66.00,0.00 L66.00,13.00"]
       RenderPath {svg:rect} at (300,0) size 30x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M60.00,0.00 L66.00,0.00 L66.00,12.00 L60.00,12.00 L60.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 2x12
         RenderSVGInlineText {#text} at (30,0) size 2x12
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x12
         RenderSVGInlineText {#text} at (32,0) size 10x12
-          chunk 3 text run 2 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (42,0) size 5x12
-        chunk 3 text run 3 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
+        chunk 1 text run 1 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x12
         RenderSVGInlineText {#text} at (47,0) size 12x12
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x12
         RenderSVGInlineText {#text} at (59,0) size 3x12
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 14x12
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
 selection start: position 1 of child 0 {#text} of child 4 {tspan} of child 7 {text} of child 0 {svg} of document
 selection end:   position 2 of child 0 {#text} of child 4 {tspan} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-4-expected.txt b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-4-expected.txt
index 4daef42..9d6b03b 100644
--- a/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-4-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/select-x-list-with-tspans-4-expected.txt
@@ -1,28 +1,30 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (50,0) size 380x60
-    RenderSVGContainer {g} at (50,0) size 380x60
+  RenderSVGRoot {svg} at (45,0) size 390x65
+    RenderSVGContainer {g} at (45,0) size 390x65
+      RenderPath {svg:line} at (45,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M10.00,0.00 L10.00,13.00"]
+      RenderPath {svg:line} at (425,0) size 10x65 [stroke={[type=SOLID] [color=#008000]}] [fill={[type=SOLID] [color=#000000]}] [data="M86.00,0.00 L86.00,13.00"]
       RenderPath {svg:rect} at (50,0) size 380x60 [fill={[type=SOLID] [color=#FF0000] [opacity=0.40]}] [data="M10.00,0.00 L86.00,0.00 L86.00,12.00 L10.00,12.00 L10.00,0.00"]
-    RenderSVGText {text} at (10,0) size 76x12 contains 3 chunk(s)
+    RenderSVGText {text} at (10,0) size 76x12 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 16x12
         chunk 1 text run 1 at (10.00,10.00) startOffset 0 endOffset 1 width 6.00: "T"
-        chunk 2 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
+        chunk 1 text run 1 at (20.00,10.00) startOffset 0 endOffset 1 width 6.00: "h"
       RenderSVGTSpan {tspan} at (0,0) size 2x12
         RenderSVGInlineText {#text} at (30,0) size 2x12
-          chunk 3 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
+          chunk 1 text run 1 at (40.00,10.00) startOffset 0 endOffset 1 width 2.00: "i"
       RenderSVGTSpan {tspan} at (0,0) size 10x12
         RenderSVGInlineText {#text} at (32,0) size 10x12
-          chunk 3 text run 2 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
+          chunk 1 text run 1 at (42.00,10.00) startOffset 0 endOffset 3 width 10.00: "s i"
       RenderSVGInlineText {#text} at (42,0) size 5x12
-        chunk 3 text run 3 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
+        chunk 1 text run 1 at (52.00,10.00) startOffset 0 endOffset 1 width 5.00: "s"
       RenderSVGTSpan {tspan} at (0,0) size 12x12
         RenderSVGInlineText {#text} at (47,0) size 12x12
-          chunk 3 text run 4 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
+          chunk 1 text run 1 at (57.00,10.00) startOffset 0 endOffset 3 width 12.00: " a "
       RenderSVGTSpan {tspan} at (0,0) size 3x12
         RenderSVGInlineText {#text} at (59,0) size 3x12
-          chunk 3 text run 5 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
+          chunk 1 text run 1 at (69.00,10.00) startOffset 0 endOffset 1 width 3.00: "t"
       RenderSVGInlineText {#text} at (62,0) size 14x12
-        chunk 3 text run 6 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
+        chunk 1 text run 1 at (72.00,10.00) startOffset 0 endOffset 3 width 14.00: "est"
 selection start: position 0 of child 0 {#text} of child 7 {text} of child 0 {svg} of document
 selection end:   position 3 of child 6 {#text} of child 7 {text} of child 0 {svg} of document
diff --git a/LayoutTests/platform/qt/svg/text/text-hkern-expected.txt b/LayoutTests/platform/qt/svg/text/text-hkern-expected.txt
index 9fb752d..d8e0d36 100644
--- a/LayoutTests/platform/qt/svg/text/text-hkern-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/text-hkern-expected.txt
@@ -1,22 +1,29 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (4,29) size 141x115
+  RenderSVGRoot {svg} at (4,29) size 142x115
     RenderSVGHiddenContainer {defs} at (0,0) size 0x0
       RenderPath {path} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [data="M2.50,70.00 L200.00,70.00"]
     RenderSVGText {text} at (0,-8) size 70x10 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 70x10
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 4 width 25.00: "1234"
-    RenderSVGText {text} at (0,-8) size 55x10 contains 1 chunk(s)
+        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 1 width 2.50: "1"
+        chunk 1 text run 2 at (17.50,0.00) startOffset 1 endOffset 2 width 5.00: "2"
+        chunk 1 text run 3 at (37.50,0.00) startOffset 2 endOffset 3 width 7.50: "3"
+        chunk 1 text run 4 at (60.00,0.00) startOffset 3 endOffset 4 width 10.00: "4"
+    RenderSVGText {text} at (0,-8) size 40x10 contains 1 chunk(s)
       RenderSVGInlineText {#text} at (0,0) size 3x10
         chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 1 width 2.50: "1"
       RenderSVGTSpan {tspan} at (0,0) size 28x10
         RenderSVGInlineText {#text} at (2,0) size 28x10
-          chunk 1 text run 2 at (2.50,0.00) startOffset 0 endOffset 2 width 12.50: "23"
-      RenderSVGInlineText {#text} at (45,0) size 10x10
-        chunk 1 text run 3 at (45.00,0.00) startOffset 0 endOffset 1 width 10.00: "4"
-    RenderSVGText {text} at (2,62) size 26x10 contains 1 chunk(s)
-      RenderSVGTextPath {textPath} at (0,0) size 26x10
-        RenderSVGInlineText {#text} at (0,0) size 26x10
-          chunk 1 text run 1 at (3.75,70.00) startOffset 0 endOffset 4 width 25.00: "1234"
+          chunk 1 text run 1 at (2.50,0.00) startOffset 0 endOffset 1 width 5.00: "2"
+          chunk 1 text run 2 at (22.50,0.00) startOffset 1 endOffset 2 width 7.50: "3"
+      RenderSVGInlineText {#text} at (30,0) size 10x10
+        chunk 1 text run 1 at (30.00,0.00) startOffset 0 endOffset 1 width 10.00: "4"
+    RenderSVGText {text} at (2,62) size 71x10 contains 1 chunk(s)
+      RenderSVGTextPath {textPath} at (0,0) size 71x10
+        RenderSVGInlineText {#text} at (0,0) size 71x10
+          chunk 1 text run 1 at (3.75,70.00) startOffset 0 endOffset 1 width 2.50: "1"
+          chunk 1 text run 2 at (22.50,70.00) startOffset 1 endOffset 2 width 5.00: "2"
+          chunk 1 text run 3 at (43.75,70.00) startOffset 2 endOffset 3 width 7.50: "3"
+          chunk 1 text run 4 at (67.50,70.00) startOffset 3 endOffset 4 width 10.00: "4"
       RenderSVGInlineText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/svg/text/text-hkern-on-vertical-text-expected.txt b/LayoutTests/platform/qt/svg/text/text-hkern-on-vertical-text-expected.txt
index 625f3a4..3fbe5bd 100644
--- a/LayoutTests/platform/qt/svg/text/text-hkern-on-vertical-text-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/text-hkern-on-vertical-text-expected.txt
@@ -6,4 +6,7 @@ layer at (0,0) size 800x600
     RenderSVGContainer {g} at (10,90) size 20x80
       RenderSVGText {text} at (-5,0) size 10x40 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (0,0) size 10x40
-          chunk 1 (vertical) text run 1 at (-5.00,8.00) startOffset 0 endOffset 4 height 40.00: "1234"
+          chunk 1 (vertical) text run 1 at (-3.00,0.00) startOffset 0 endOffset 1 height 10.00: "1"
+          chunk 1 (vertical) text run 2 at (-3.00,10.00) startOffset 1 endOffset 2 height 10.00: "2"
+          chunk 1 (vertical) text run 3 at (-3.00,20.00) startOffset 2 endOffset 3 height 10.00: "3"
+          chunk 1 (vertical) text run 4 at (-3.00,30.00) startOffset 3 endOffset 4 height 10.00: "4"
diff --git a/LayoutTests/platform/qt/svg/text/text-vkern-expected.txt b/LayoutTests/platform/qt/svg/text/text-vkern-expected.txt
index 9a2e860..075feac 100644
--- a/LayoutTests/platform/qt/svg/text/text-vkern-expected.txt
+++ b/LayoutTests/platform/qt/svg/text/text-vkern-expected.txt
@@ -10,12 +10,16 @@ layer at (0,0) size 800x600
     RenderSVGContainer {g} at (10,90) size 70x116
       RenderSVGText {text} at (-5,0) size 10x58 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (0,0) size 10x58
-          chunk 1 (vertical) text run 1 at (-5.00,8.00) startOffset 0 endOffset 4 height 40.00: "1234"
-      RenderSVGText {text} at (-5,0) size 10x52 contains 1 chunk(s)
+          chunk 1 (vertical) text run 1 at (-3.00,0.00) startOffset 0 endOffset 1 height 10.00: "1"
+          chunk 1 (vertical) text run 2 at (-3.00,16.00) startOffset 1 endOffset 2 height 10.00: "2"
+          chunk 1 (vertical) text run 3 at (-3.00,32.00) startOffset 2 endOffset 3 height 10.00: "3"
+          chunk 1 (vertical) text run 4 at (-3.00,48.00) startOffset 3 endOffset 4 height 10.00: "4"
+      RenderSVGText {text} at (-5,0) size 10x46 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (3,0) size 4x10
-          chunk 1 (vertical) text run 1 at (-1.25,8.00) startOffset 0 endOffset 1 height 10.00: "1"
+          chunk 1 (vertical) text run 1 at (-3.00,0.00) startOffset 0 endOffset 1 height 10.00: "1"
         RenderSVGTSpan {tspan} at (0,0) size 8x26
           RenderSVGInlineText {#text} at (1,10) size 8x26
-            chunk 1 (vertical) text run 2 at (-3.75,18.00) startOffset 0 endOffset 2 height 20.00: "23"
-        RenderSVGInlineText {#text} at (0,42) size 10x10
-          chunk 1 (vertical) text run 3 at (-5.00,50.00) startOffset 0 endOffset 1 height 10.00: "4"
+            chunk 1 (vertical) text run 1 at (-3.00,10.00) startOffset 0 endOffset 1 height 10.00: "2"
+            chunk 1 (vertical) text run 2 at (-3.00,26.00) startOffset 1 endOffset 2 height 10.00: "3"
+        RenderSVGInlineText {#text} at (0,36) size 10x10
+          chunk 1 (vertical) text run 1 at (-3.00,36.00) startOffset 0 endOffset 1 height 10.00: "4"
diff --git a/LayoutTests/platform/qt/svg/transforms/text-with-mask-with-svg-transform-expected.txt b/LayoutTests/platform/qt/svg/transforms/text-with-mask-with-svg-transform-expected.txt
index c536e93..d967d08 100644
--- a/LayoutTests/platform/qt/svg/transforms/text-with-mask-with-svg-transform-expected.txt
+++ b/LayoutTests/platform/qt/svg/transforms/text-with-mask-with-svg-transform-expected.txt
@@ -38,11 +38,12 @@ layer at (0,0) size 800x600
         RenderPath {rect} at (21,270) size 158x104 [fill={[type=SOLID] [color=#FFFFFF] [opacity=0.20]}] [data="M60.00,225.00 L260.00,225.00 L260.00,250.00 L60.00,250.00 L60.00,225.00"]
         RenderPath {rect} at (11,288) size 158x104 [fill={[type=SOLID] [color=#FFFFFF]}] [data="M60.00,250.00 L260.00,250.00 L260.00,275.00 L60.00,275.00 L60.00,250.00"]
         RenderPath {rect} at (0,306) size 157x103 [fill={[type=SOLID] [color=#FFFFFF] [opacity=0.70]}] [data="M60.00,275.00 L260.00,275.00 L260.00,300.00 L60.00,300.00 L60.00,275.00"]
-      RenderSVGText {text} at (60,198) size 126x110 contains 1 chunk(s)
+      RenderSVGText {text} at (60,198) size 126x115 contains 1 chunk(s)
         [masker="mask3"] RenderSVGResourceMasker {mask} at (60,200) size 200x100
-        RenderSVGInlineText {#text} at (0,0) size 126x110
+        RenderSVGInlineText {#text} at (0,0) size 126x115
           [masker="mask3"] RenderSVGResourceMasker {mask} at (60,200) size 200x100
-          chunk 1 text run 1 at (60.00,280.00) startOffset 0 endOffset 3 width 121.33: "SVG"
+          chunk 1 text run 1 at (60.00,280.00) startOffset 0 endOffset 2 width 80.96: "SV"
+          chunk 1 text run 2 at (145.36,280.00) startOffset 2 endOffset 3 width 40.37: "G"
       RenderSVGText {text} at (200,213) size 200x15 contains 1 chunk(s)
         RenderSVGInlineText {#text} at (0,0) size 200x15
           chunk 1 text run 1 at (200.00,225.00) startOffset 0 endOffset 36 width 200.00: "Text with mask containing rectangles"
diff --git a/LayoutTests/platform/win/svg/custom/broken-internal-references-expected.txt b/LayoutTests/platform/win/svg/custom/broken-internal-references-expected.txt
index 3a97005..709ee6d 100644
--- a/LayoutTests/platform/win/svg/custom/broken-internal-references-expected.txt
+++ b/LayoutTests/platform/win/svg/custom/broken-internal-references-expected.txt
@@ -18,7 +18,6 @@ layer at (0,0) size 800x600
     RenderSVGText {text} at (0,0) size 0x0 contains 1 chunk(s)
       RenderSVGTextPath {textPath} at (0,0) size 0x0
         RenderSVGInlineText {#text} at (0,0) size 0x0
-          chunk 1 text run 1 at (340282346638528860000000000000000000000.00,340282346638528860000000000000000000000.00) startOffset 0 endOffset 18 width 322.00: "Shoud not be shown"
       RenderSVGInlineText {#text} at (0,0) size 0x0
     RenderSVGText {text}
       RenderSVGInline {tref} at (0,0) size 0x0

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list