Bug 374277 - Horizontal line with stroke referencing a userSpaceOnUse pattern doesn't paint. r=jwatt,sr=tor

This commit is contained in:
longsonr@gmail.com 2007-04-10 02:57:12 -07:00
parent cf800aa6a4
commit a288fe798c

View File

@ -745,7 +745,8 @@ nsSVGPatternFrame::GetCallerGeometry(nsIDOMSVGMatrix **aCTM,
CallQueryInterface(aSource, &callerSVGFrame);
callerSVGFrame->GetBBox(aBBox);
// Sanity check
{
PRUint16 type = GetPatternUnits();
if (type == nsIDOMSVGPatternElement::SVG_PUNITS_OBJECTBOUNDINGBOX) {
float width, height;
(*aBBox)->GetWidth(&width);
(*aBBox)->GetHeight(&height);