Since we're using updateLayout() for distribution, elements not in document tree cannot ensure distribution. See also Bug 104218
Created attachment 178967 [details] Patch
This patch can be applied after Bug 104218 is resolved.
Created attachment 178989 [details] Patch
Comment on attachment 178989 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178989&action=review > LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html:56 > +debug('rootChild is disconnected. Now content became inactive, so it should be distributed.'); should "not" be?
(In reply to comment #4) > (From update of attachment 178989 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=178989&action=review > > > LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html:56 > > +debug('rootChild is disconnected. Now content became inactive, so it should be distributed.'); > > should "not" be? Sorry, I wanted to say the content element itself should be distributed. I'll update the ChangeLog anyway.
Created attachment 179155 [details] Patch for landing
Comment on attachment 179155 [details] Patch for landing Clearing flags on attachment: 179155 Committed r137552: <http://trac.webkit.org/changeset/137552>
All reviewed patches have been landed. Closing bug.