Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: Source/WebCore/dom/ContainerNodeAlgorithms.cpp

Issue 11593024: Merge 137739 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/dom/ContainerNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/ContainerNodeAlgorithms.cpp
===================================================================
--- Source/WebCore/dom/ContainerNodeAlgorithms.cpp (revision 137972)
+++ Source/WebCore/dom/ContainerNodeAlgorithms.cpp (working copy)
@@ -35,12 +35,12 @@
void ChildNodeInsertionNotifier::notifyDescendantInsertedIntoDocument(ContainerNode* node)
{
ChildNodesLazySnapshot snapshot(node);
- while (Node* child = snapshot.nextNode()) {
+ while (RefPtr<Node> child = snapshot.nextNode()) {
// If we have been removed from the document during this loop, then
// we don't want to tell the rest of our children that they've been
// inserted into the document because they haven't.
if (node->inDocument() && child->parentNode() == node)
- notifyNodeInsertedIntoDocument(child);
+ notifyNodeInsertedIntoDocument(child.get());
}
if (!node->isElementNode())
@@ -69,12 +69,12 @@
void ChildNodeRemovalNotifier::notifyDescendantRemovedFromDocument(ContainerNode* node)
{
ChildNodesLazySnapshot snapshot(node);
- while (Node* child = snapshot.nextNode()) {
+ while (RefPtr<Node> child = snapshot.nextNode()) {
// If we have been added to the document during this loop, then we
// don't want to tell the rest of our children that they've been
// removed from the document because they haven't.
if (!node->inDocument() && child->parentNode() == node)
- notifyNodeRemovedFromDocument(child);
+ notifyNodeRemovedFromDocument(child.get());
}
if (!node->isElementNode())
« no previous file with comments | « Source/WebCore/dom/ContainerNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698