• morrita@google.com's avatar
    ShadowRoot shouldn't be adopted by any Document. · 73798565
    morrita@google.com authored
    Reviewed by Dimitri Glazkov.
    ShadowRoot cannot cannot be removed from its host, which means
    ShadowRoot cannot be adopted by any Document directly because the
    adoptNode() tries to remove it from its parent but it doesn't make
    sense for ShadowRoot.
    This change adds a guard to check such a case.
    Test: fast/dom/shadow/adopt-node-with-shadow-root.html
    * dom/Document.cpp:
    * fast/dom/shadow/adopt-node-with-shadow-root-expected.txt: Added.
    * fast/dom/shadow/adopt-node-with-shadow-root.html: Added.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog 9.9 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.