// --------------------------------------------------------------------------- // // --------------------------------------------------------------------------- void CSvgPathElementImpl::GetBBox( TGfxRectangle2D& aBbox ) { if (!iShape || iShape->PointTypeArray()->Count() == 0) { // The D attribute has not been set yet return; } iShape->GetBounds( GetCTM(), aBbox ); }
wxSVGMatrix wxSVGLocatable::GetCTM(const wxSVGElement* element) { if (element == NULL || element->GetType() != wxSVGXML_ELEMENT_NODE || element->GetDtd() == wxSVG_SVG_ELEMENT) return wxSVGMatrix(); wxSVGMatrix matrix = GetCTM((wxSVGElement*) (element->GetParent())); const wxSVGTransformable* transformable = wxSVGTransformable::GetSVGTransformable(*element); if (!transformable) return matrix; transformable->UpdateMatrix(matrix); return matrix; }
/* DOMSVGMatrix getCTM (); */ NS_IMETHODIMP SVGLocatableElement::GetCTM(nsISupports * *aCTM) { *aCTM = GetCTM().get(); return NS_OK; }