diff --git a/layout/reftests/bugs/956513-1-ref.svg b/layout/reftests/bugs/956513-1-ref.svg new file mode 100644 index 000000000000..c9f39b529702 --- /dev/null +++ b/layout/reftests/bugs/956513-1-ref.svg @@ -0,0 +1,10 @@ + + + + + + Text should be centered on the line. + diff --git a/layout/reftests/bugs/956513-1.svg b/layout/reftests/bugs/956513-1.svg new file mode 100644 index 000000000000..f7980a0781dc --- /dev/null +++ b/layout/reftests/bugs/956513-1.svg @@ -0,0 +1,10 @@ + + + + + + Text should be centered on the line. + diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index c0a4b4280e14..51d3b4bb42b7 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -1791,4 +1791,5 @@ fuzzy-if(OSX==10.6,2,30) == 933264-1.html 933264-1-ref.html == 941940-1.html 941940-1-ref.html == 942017.html 942017-ref.html == 942672-1.html 942672-1-ref.html +== 956513-1.svg 956513-1-ref.svg == 944291-1.html 944291-1-ref.html diff --git a/layout/svg/SVGTextFrame.cpp b/layout/svg/SVGTextFrame.cpp index 3fff4b24730d..3834a4987280 100644 --- a/layout/svg/SVGTextFrame.cpp +++ b/layout/svg/SVGTextFrame.cpp @@ -4326,6 +4326,7 @@ SVGTextFrame::ResolvePositions(nsIContent* aContent, // only if they actually have some text content. if (HasTextContent(aContent)) { mPositions[aIndex].mPosition = gfxPoint(); + mPositions[aIndex].mStartOfChunk = true; } } else if (aContent->Tag() != nsGkAtoms::a) { // We have a text content element that can have x/y/dx/dy/rotate attributes.