[webkit-reviews] review requested: [Bug 78613] Paddings and borders on root SVG element with viewbox causes child SVG elements to be rendered with the incorrect size : [Attachment 128006] Patch for review.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 21 11:20:27 PST 2012


Max Vujovic <mvujovic at adobe.com> has asked  for review:
Bug 78613: Paddings and borders on root SVG element with viewbox causes child
SVG elements to be rendered with the incorrect size
https://bugs.webkit.org/show_bug.cgi?id=78613

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

------- Additional Comments from Max Vujovic <mvujovic at adobe.com>
Created a patch for review.

Here is the description of the fix, taken from the ChangeLog:
"""
	When computing its localToBorderBoxTransform, RenderSVGRoot was using
its width and height
	as the dimensions of the SVG viewport. However, width and height
include CSS borders and
	paddings, which are not part of the SVG viewport area. Now,
RenderSVGRoot uses its
	contentWidth and contentHeight, which correspond to the SVG viewport
area.
"""


More information about the webkit-reviews mailing list