mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 790072 - Fix crash when using -moz-objectFill property outside SVG glyphs r=roc
This commit is contained in:
parent
12f3d3e0cd
commit
30485d3f14
@ -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;
|
||||
|
||||
|
1
layout/svg/crashtests/790072.svg
Normal file
1
layout/svg/crashtests/790072.svg
Normal 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 |
@ -134,4 +134,5 @@ load 767056-1.svg
|
||||
load 768351.svg
|
||||
load 780963-1.html
|
||||
load 757751-1.svg
|
||||
load 790072.svg
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user