⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268782 in webkit


Ignore:
Timestamp:
Oct 20, 2020, 8:33:03 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Release assert in ~Node due to render element of pseudo element not getting removed in time
https://bugs.webkit.org/show_bug.cgi?id=217996

Patch by Julian Gonzalez <julian_a_gonzalez@apple.com> on 2020-10-20
Reviewed by Ryosuke Niwa.

When attaching a shadow root to an element, remember to tear down renderers not only if
one exists on the element, but also if it uses display: contents.

  • dom/Element.cpp:

(WebCore::Element::addShadowRoot):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268780 r268782  
     12020-10-20  Julian Gonzalez  <julian_a_gonzalez@apple.com>
     2
     3        Release assert in ~Node due to render element of pseudo element not getting removed in time
     4        https://bugs.webkit.org/show_bug.cgi?id=217996
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        When attaching a shadow root to an element, remember to tear down renderers not only if
     9        one exists on the element, but also if it uses display: contents.
     10
     11        * dom/Element.cpp:
     12        (WebCore::Element::addShadowRoot):
     13
    1142020-10-20  Sihui Liu  <sihui_liu@apple.com>
    215
  • trunk/Source/WebCore/dom/Element.cpp

    r267970 r268782  
    23012301        WidgetHierarchyUpdatesSuspensionScope suspendWidgetHierarchyUpdates;
    23022302        ScriptDisallowedScope::InMainThread scriptDisallowedScope;
    2303         if (renderer())
     2303        if (renderer() || hasDisplayContents())
    23042304            RenderTreeUpdater::tearDownRenderers(*this);
    23052305
Note: See TracChangeset for help on using the changeset viewer.