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

Changeset 130587 in webkit


Ignore:
Timestamp:
Oct 6, 2012, 11:51:05 AM (14 years ago)
Author:
ggaren@apple.com
Message:

If Node X is reachable from JavaScript, all Nodes in the same tree should be kept alive
​https://bugs.webkit.org/show_bug.cgi?id=88834

Reviewed by Gavin Barraclough.

Follow-up patch to address some comments by Darin Adler.

  • bindings/js/JSNodeCustom.h:

(WebCore::willCreatePossiblyOrphanedTreeByRemoval): Save some space by
collapsing comment lines. Use Node::hasChildNodes() for brevity.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r130586 r130587  
     12012-10-06  Geoffrey Garen  <ggaren@apple.com>
     2
     3        If Node X is reachable from JavaScript, all Nodes in the same tree should be kept alive
     4        https://bugs.webkit.org/show_bug.cgi?id=88834
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        Follow-up patch to address some comments by Darin Adler.
     9
     10        * bindings/js/JSNodeCustom.h:
     11        (WebCore::willCreatePossiblyOrphanedTreeByRemoval): Save some space by
     12        collapsing comment lines. Use Node::hasChildNodes() for brevity.
     13
    1142012-10-06  Benjamin Poulain  <benjamin@webkit.org>
    215
  • trunk/Source/WebCore/bindings/js/JSNodeCustom.h

    r130584 r130587  
    7373// root. In the JavaScript DOM, a node tree survives as long as there is a
    7474// reference to any node in the tree. To model the JavaScript DOM on top of
    75 // the C++ DOM, we ensure that the root of every tree has a JavaScript
    76 // wrapper.
     75// the C++ DOM, we ensure that the root of every tree has a JavaScript wrapper.
    7776inline void willCreatePossiblyOrphanedTreeByRemoval(Node* root)
    7877{
    … …  
    8079        return;
    8180
    82     if (!root->isContainerNode())
    83         return;
    84 
    85     if (!toContainerNode(root)->hasChildNodes())
     81    if (!root->hasChildNodes())
    8682        return;
    8783
Note: See TracChangeset for help on using the changeset viewer.