Bug 773595 - Have nsSVGPatternFrame::GetPatternMatrix use the correct attribute. r=longsonr.

--HG--
extra : rebase_source : b261c4e5cda1971ea6877790d97d056e05361373
This commit is contained in:
Jonathan Watt 2012-07-21 20:16:35 -04:00
parent 4b2601630f
commit 48cab57f94

View File

@ -606,7 +606,7 @@ nsSVGPatternFrame::GetPatternMatrix(const gfxMatrix &patternTransform,
gfxFloat minx = bbox.X();
gfxFloat miny = bbox.Y();
PRUint16 type = GetEnumValue(nsSVGPatternElement::PATTERNCONTENTUNITS);
PRUint16 type = GetEnumValue(nsSVGPatternElement::PATTERNUNITS);
if (type == nsIDOMSVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) {
minx += callerBBox.X();
miny += callerBBox.Y();