Bug 790072 - Fix crash when using -moz-objectFill property outside SVG glyphs r=roc

This commit is contained in:
Edwin Flores 2012-09-19 17:03:25 +12:00
parent 12f3d3e0cd
commit 30485d3f14
3 changed files with 7 additions and 0 deletions

View File

@ -1055,6 +1055,11 @@ nsSVGGlyphFrame::SetupObjectPaint(gfxContext *aContext,
float& aOpacity,
gfxTextObjectPaint *aOuterObjectPaint)
{
if (!aOuterObjectPaint) {
NS_WARNING("Outer object paint value used outside SVG glyph");
return false;
}
const nsStyleSVG *style = GetStyleSVG();
const nsStyleSVGPaint &paint = style->*aFillOrStroke;

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg"><text style="stroke: -moz-objectfill none;">abc</text></svg>

After

Width:  |  Height:  |  Size: 101 B

View File

@ -134,4 +134,5 @@ load 767056-1.svg
load 768351.svg
load 780963-1.html
load 757751-1.svg
load 790072.svg