[Webkit-unassigned] [Bug 166750] New: Zooming factor is not respected when displaying an non inline SVG with a <mask> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 5 18:20:36 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=166750

            Bug ID: 166750
           Summary: Zooming factor is not respected when displaying an non
                    inline SVG with a <mask> element
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: zimmermann at kde.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170106/e60b1d36/attachment.html>


More information about the webkit-unassigned mailing list