Bug 141983 - Shadow DOM document doesn't always match CSS document (for image generators)
Summary: Shadow DOM document doesn't always match CSS document (for image generators)
Status: RESOLVED DUPLICATE of bug 144983
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-24 14:00 PST by Dean Jackson
Modified: 2015-05-13 19:28 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 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.
Comment 1 Radar WebKit Bug Importer 2015-02-24 14:01:38 PST
<rdar://problem/19943135>
Comment 2 Simon Fraser (smfr) 2015-05-13 19:26:44 PDT
Fixing via the (ironically numbered) bug 144983
Comment 3 Simon Fraser (smfr) 2015-05-13 19:28:12 PDT

*** This bug has been marked as a duplicate of bug 144983 ***