mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
bug 930420 - respect any transform on the glyph element itself when calculating SVG glyph extents. r=heycam
This commit is contained in:
parent
8bac055181
commit
82c129d909
@ -1862,7 +1862,15 @@ nsSVGUtils::GetSVGGlyphExtents(Element* aElement,
|
||||
if (!svgFrame) {
|
||||
return false;
|
||||
}
|
||||
*aResult = svgFrame->GetBBoxContribution(aSVGToAppSpace,
|
||||
|
||||
gfxMatrix transform(aSVGToAppSpace);
|
||||
nsIContent* content = frame->GetContent();
|
||||
if (content->IsSVG()) {
|
||||
transform = static_cast<nsSVGElement*>(content)->
|
||||
PrependLocalTransformsTo(aSVGToAppSpace);
|
||||
}
|
||||
|
||||
*aResult = svgFrame->GetBBoxContribution(transform,
|
||||
nsSVGUtils::eBBoxIncludeFill | nsSVGUtils::eBBoxIncludeFillGeometry |
|
||||
nsSVGUtils::eBBoxIncludeStroke | nsSVGUtils::eBBoxIncludeStrokeGeometry |
|
||||
nsSVGUtils::eBBoxIncludeMarkers);
|
||||
|
Loading…
Reference in New Issue
Block a user