Bug 141983
Summary: | Shadow DOM document doesn't always match CSS document (for image generators) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Dean Jackson
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/19943135>
Simon Fraser (smfr)
Fixing via the (ironically numbered) bug 144983
Simon Fraser (smfr)
*** This bug has been marked as a duplicate of bug 144983 ***