[Webkit-unassigned] [Bug 39059] canvas drawImage does not render SVG with embedded images correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 12 10:41:47 PDT 2016


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

--- Comment #5 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
(In reply to comment #3)
> The embedded image gets rendered on reloading the document. I am not sure if
> the embedded image might not be encoded in time for the onload event. I also
> don't know if onload requires images to be encoded and ready for rendering.
> But how else would the user know if the SVG is ready to render?

I added a new test case where it waits for 100ms after onLoad() event to ensure the sub-resources are loaded/decoded before drawing the image to the canvas. Of course this will not be a reliable way to fix the issue if the data url sub-resource is big or the hardware is slow.

The data url image is the only exception to be allowed as a sub-resource in an SVG. No loading from network is involved since all the data are loaded with the SVG itself. The only overhead is decoding the the data url to an image.

The sub-resources can also be nested if the data url image is an SVG image which has a data url image.

-- 
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/20161012/c8303d9d/attachment.html>


More information about the webkit-unassigned mailing list