Changeset 164369 in webkit


Ignore:
Timestamp:
Feb 19, 2014, 10:04:39 AM (11 years ago)
Author:
Antti Koivisto
Message:

Don't call to willBeDeletedFrom(Document&) when destructing document
https://bugs.webkit.org/show_bug.cgi?id=129013

Reviewed by Andreas Kling.

The document is half dead at this point.

  • dom/ContainerNode.cpp:

(WebCore::ContainerNode::~ContainerNode):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r164368 r164369  
     12014-02-19  Antti Koivisto  <antti@apple.com>
     2
     3        Don't call to willBeDeletedFrom(Document&) when destructing document
     4        https://bugs.webkit.org/show_bug.cgi?id=129013
     5
     6        Reviewed by Andreas Kling.
     7       
     8        The document is half dead at this point.
     9
     10        * dom/ContainerNode.cpp:
     11        (WebCore::ContainerNode::~ContainerNode):
     12
    1132014-02-19  Daniel Bates  <dabates@apple.com>
    214
  • trunk/Source/WebCore/dom/ContainerNode.cpp

    r164248 r164369  
    151151ContainerNode::~ContainerNode()
    152152{
    153     willBeDeletedFrom(document());
     153    if (!isDocumentNode())
     154        willBeDeletedFrom(document());
    154155    removeDetachedChildren();
    155156}
Note: See TracChangeset for help on using the changeset viewer.