This is sub-bug of Bug 88747.
repro: <!DOCTYPE html> <html> <body> <div id="host" class="host"><div>host content</div></div> <script> if (window.layoutTestController) window.layoutTestController.waitUntilDone(); var root = new WebKitShadowRoot(document.querySelector('#host')); root.innerHTML = '<style>something { }</style>' + 'child<div>child of child<content></content></div>'; window.setTimeout(function() { if (window.layoutTestController) window.layoutTestController.notifyDone(); }, 0); </script> </body> </html>
Created attachment 147231 [details] Patch
Dimitri, could you take a look?
Comment on attachment 147231 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=147231&action=review > Source/WebCore/ChangeLog:3 > + [Shadow DOM] <style> prevent distributed content from rendering. prevent - prevents? The bug title doesn't seem very precise in describing the problem. You can do better! :) > Source/WebCore/dom/ElementShadow.h:67 > + InvalidateAndForcesReattach InvalidateAndForcesReattach -> InvalidateAndForceReattach
Thanks for taking look at this, Dimitri!
Created attachment 152690 [details] Patch
(In reply to comment #5) > Thanks for taking look at this, Dimitri! ... and just updated the patch.
Comment on attachment 152690 [details] Patch Clearing flags on attachment: 152690 Committed r122915: <http://trac.webkit.org/changeset/122915>
All reviewed patches have been landed. Closing bug.