Changeset 87029 in webkit


Ignore:
Timestamp:
May 22, 2011 8:56:02 AM (13 years ago)
Author:
dominicc@chromium.org
Message:

2011-05-22 Dominic Cooney <dominicc@chromium.org>

Reviewed by Dimitri Glazkov.

When removing a shadow root, also remove it from the render tree.
https://bugs.webkit.org/show_bug.cgi?id=61245

  • platform/mac/Skipped: Unskip shadow tests.

2011-05-22 Dominic Cooney <dominicc@chromium.org>

Reviewed by Dimitri Glazkov.

When removing a shadow root, also remove it from the render tree.
https://bugs.webkit.org/show_bug.cgi?id=61245

Test: existing fast/dom/shadow/layout-tests-can-access-shadow.html

  • dom/Element.cpp: (WebCore::Element::removeShadowRoot): Call detach if attached.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87027 r87029  
     12011-05-22  Dominic Cooney  <dominicc@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        When removing a shadow root, also remove it from the render tree.
     6        https://bugs.webkit.org/show_bug.cgi?id=61245
     7
     8        * platform/mac/Skipped: Unskip shadow tests.
     9
    1102011-05-21  Dirk Schulze  <krit@webkit.org>
    211
  • trunk/LayoutTests/platform/mac/Skipped

    r87020 r87029  
    345345plugins/mouse-click-iframe-to-plugin.html
    346346
    347 # Unskip when https://bugs.webkit.org/show_bug.cgi?id=59571 is fixed
    348 fast/dom/shadow
    349 
    350347# Animation API is disabled by default
    351348animations/animation-api-1.html
  • trunk/Source/WebCore/ChangeLog

    r87028 r87029  
     12011-05-22  Dominic Cooney  <dominicc@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        When removing a shadow root, also remove it from the render tree.
     6        https://bugs.webkit.org/show_bug.cgi?id=61245
     7
     8        Test: existing fast/dom/shadow/layout-tests-can-access-shadow.html
     9
     10        * dom/Element.cpp:
     11        (WebCore::Element::removeShadowRoot): Call detach if attached.
     12
    1132011-05-22  Dirk Schulze  <krit@webkit.org>
    214
  • trunk/Source/WebCore/dom/Element.cpp

    r87014 r87029  
    12031203        data->m_shadowRoot = 0;
    12041204        document()->removeFocusedNodeOfSubtree(oldRoot.get());
     1205
     1206        // Remove from rendering tree
     1207        if (oldRoot->attached())
     1208            oldRoot->detach();
     1209
    12051210        oldRoot->setShadowHost(0);
     1211
    12061212        if (oldRoot->inDocument())
    12071213            oldRoot->removedFromDocument();
Note: See TracChangeset for help on using the changeset viewer.