RESOLVED DUPLICATE of bug 144983 141983
Shadow DOM document doesn't always match CSS document (for image generators)
https://bugs.webkit.org/show_bug.cgi?id=141983
Summary Shadow DOM document doesn't always match CSS document (for image generators)
Dean Jackson
Reported 2015-02-24 14:00:44 PST
I hit this issue with the media controls on iOS. They use a -webkit-canvas(name) for the background of an element. Later, when we want to paint into that, the reference to document is pointing to a different place than the context was created, even though the element is in the shadow DOM. I had to use ownerDocument to get it to work. This is also not always reproducible. It seems that if you try to paint into the context BEFORE you've caused a layout, everything works. See <rdar://problem/19923536> for more details.
Attachments
Radar WebKit Bug Importer
Comment 1 2015-02-24 14:01:38 PST
Simon Fraser (smfr)
Comment 2 2015-05-13 19:26:44 PDT
Fixing via the (ironically numbered) bug 144983
Simon Fraser (smfr)
Comment 3 2015-05-13 19:28:12 PDT
*** This bug has been marked as a duplicate of bug 144983 ***
Note You need to log in before you can comment on or make changes to this bug.