GraphicShape.resize() takes a SVGRect argument. This needs to be calculated 
using getBBox(). Firefox has a long-standing bug where this method causes an 
error if the SVG is not yet drawn.[1]

I’m not sure I understand the need for the call to getBBox(). Why is the width 
and height not enough? And why is the width and height always being set for 
SVG? If we want the size to be the bounding box, shouldn't no size be set at 
all?

Harbs

[1https://bugzilla.mozilla.org/show_bug.cgi?id=612118 
<https://bugzilla.mozilla.org/show_bug.cgi?id=612118>]

Reply via email to