Changeset 130587 in webkit
- Timestamp:
- Oct 6, 2012, 11:51:05 AM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
bindings/js/JSNodeCustom.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130586 r130587 1 2012-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 1 14 2012-10-06 Benjamin Poulain <benjamin@webkit.org> 2 15 -
trunk/Source/WebCore/bindings/js/JSNodeCustom.h
r130584 r130587 73 73 // root. In the JavaScript DOM, a node tree survives as long as there is a 74 74 // 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. 77 76 inline void willCreatePossiblyOrphanedTreeByRemoval(Node* root) 78 77 { … … 80 79 return; 81 80 82 if (!root->isContainerNode()) 83 return; 84 85 if (!toContainerNode(root)->hasChildNodes()) 81 if (!root->hasChildNodes()) 86 82 return; 87 83
Note:
See TracChangeset
for help on using the changeset viewer.