Bug 842009 - Ignore <tref> elements when computing SVG text layout. r=longsonr

This commit is contained in:
Cameron McCormack 2013-02-17 19:28:09 +11:00
parent 0e87380e32
commit 5b745dcbdb
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title id="hello">hello</title>
<text x="100" y="100"> <tref xlink:href="#hello"/></text>
</svg>

After

Width:  |  Height:  |  Size: 190 B

View File

@ -153,3 +153,4 @@ load 808318-1.svg
load 813420-1.svg
load 841163-1.svg
load 841812-1.svg
load 842009-1.svg

View File

@ -253,7 +253,6 @@ IsTextContentElement(nsIContent* aContent)
if (aContent->Tag() == nsGkAtoms::a ||
aContent->Tag() == nsGkAtoms::tspan ||
aContent->Tag() == nsGkAtoms::tref ||
aContent->Tag() == nsGkAtoms::altGlyph) {
return true;
}