[webkit-reviews] review requested: [Bug 78631] getCTM() on SVG root element with borders, paddings, and viewbox returns incorrect values : [Attachment 127191] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 15 09:30:59 PST 2012


Max Vujovic <mvujovic at adobe.com> has asked  for review:
Bug 78631: getCTM() on SVG root element with borders, paddings, and viewbox
returns incorrect values
https://bugs.webkit.org/show_bug.cgi?id=78631

Attachment 127191: Patch
https://bugs.webkit.org/attachment.cgi?id=127191&action=review

------- Additional Comments from Max Vujovic <mvujovic at adobe.com>
Added a proposed patch. The root cause of this bug was that
SVGSVGElement::currentViewportSize was returning the size of the SVG viewport
plus CSS borders and paddings, causing the CTM calculation to be off. In the
patch, SVGSVGElement::currentViewportSize uses contentBoxRect instead of
frameRect to compute the viewport size for SVG root elements.


More information about the webkit-reviews mailing list