NEW 166750
Zooming factor is not respected when displaying an non inline SVG with a <mask> element
https://bugs.webkit.org/show_bug.cgi?id=166750
Summary Zooming factor is not respected when displaying an non inline SVG with a <mas...
Said Abou-Hallawa
Reported 2017-01-05 18:20:36 PST
Open the attached test case. It contains three identical SVGs. The first one is a data uri referenced from an <img> element. The second is an external SVG referenced from another <img> element. The third one is an inline SVG. The non-inline SVG images are not drawn correctly. The reason is the SVG includes a <mask> element which creates an ImageBuffer for applying the mask. For the non-inline case, SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem() returns an identity transform because RenderSVGRoot::localToParentTransform() does not return the zooming factor of the HTMLDocument since its document is an SVGDocument. Also deviceScaleFactor returns 1 in this case on Retina devices.
Attachments
mask (234 bytes, image/svg+xml)
2017-01-05 18:20 PST, Said Abou-Hallawa
no flags
test case (839 bytes, text/html)
2017-01-05 18:21 PST, Said Abou-Hallawa
no flags
Said Abou-Hallawa
Comment 1 2017-01-05 18:20:56 PST
Said Abou-Hallawa
Comment 2 2017-01-05 18:21:52 PST
Created attachment 298162 [details] test case
Note You need to log in before you can comment on or make changes to this bug.