From 5f26fcc3ccf9fe6692fd45415d3923a4f19cb7ba Mon Sep 17 00:00:00 2001 From: "longsonr%gmail.com" Date: Tue, 10 Apr 2007 09:57:12 +0000 Subject: [PATCH] Bug 374277 - Horizontal line with stroke referencing a userSpaceOnUse pattern doesn't paint. r=jwatt,sr=tor --- layout/svg/base/src/nsSVGPatternFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/svg/base/src/nsSVGPatternFrame.cpp b/layout/svg/base/src/nsSVGPatternFrame.cpp index b34eacaae9d..65185490657 100644 --- a/layout/svg/base/src/nsSVGPatternFrame.cpp +++ b/layout/svg/base/src/nsSVGPatternFrame.cpp @@ -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);