Skip to content
  • commit-queue@webkit.org's avatar
    StyleRecalc should occur when shadow root exists and light children are changed. · e093195b
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=76262
    
    Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-02
    Reviewed by Hajime Morita.
    
    Source/WebCore:
    
    When light children is changed, the element included in HTMLContentElement may also be changed.
    So we have to recalculate inclusion of content element again.
    
    Test: fast/dom/shadow/shadow-contents-fallback-dynamic.html
    
    * dom/Element.cpp:
    (WebCore::Element::childrenChanged):
    
    LayoutTests:
    
    Tests for dynamic content fallback.
    Also, unnecessary RenderText objects in previous test expectations were removed.
    
    * fast/dom/shadow/shadow-contents-fallback-dynamic-expected.txt: Added.
    * fast/dom/shadow/shadow-contents-fallback-dynamic.html: Added.
    * platform/chromium-win/fast/html/details-remove-child-2-expected.txt:
    * platform/gtk/fast/html/details-remove-child-2-expected.txt:
    * platform/mac/fast/html/details-remove-child-2-expected.txt:
    * platform/qt/fast/html/details-remove-child-2-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e093195b