Suppress rendering of light children when ShadowRoot is dynamically created.
https://bugs.webkit.org/show_bug.cgi?id=72441

Reviewed by Ryosuke Niwa.

Source/WebCore:

Tests: fast/dom/shadow/dynamically-created-shadow-root-expected.html
       fast/dom/shadow/dynamically-created-shadow-root.html

* dom/Element.cpp:
(WebCore::Element::setShadowRoot):

LayoutTests:

* fast/dom/shadow/dynamically-created-shadow-root-expected.html: Added.
* fast/dom/shadow/dynamically-created-shadow-root.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed