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

Unified Diff: Source/core/editing/ReplaceNodeWithSpanCommand.cpp

Issue 23243003: [oilpan] Wrap NodeVector into CollectionRoot for ensure that contained nodes stay alive. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Fix infinite looping Created 7 years, 4 months 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/core/editing/ApplyStyleCommand.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ReplaceNodeWithSpanCommand.cpp
diff --git a/Source/core/editing/ReplaceNodeWithSpanCommand.cpp b/Source/core/editing/ReplaceNodeWithSpanCommand.cpp
index 575e4b3706616e3a3dbc4d8f1651a8762f4eeff0..3ed3f23d85c84fad2f84dae7e504a2591d1a0935 100644
--- a/Source/core/editing/ReplaceNodeWithSpanCommand.cpp
+++ b/Source/core/editing/ReplaceNodeWithSpanCommand.cpp
@@ -56,7 +56,7 @@ static void swapInNodePreservingAttributesAndChildren(const Handle<HTMLElement>&
NodeVector children;
getChildNodes(nodeToReplace.raw(), children);
- for (size_t i = 0; i < children.size(); ++i)
+ for (size_t i = 0; i < children->size(); ++i)
newNode->appendChild(children[i], ASSERT_NO_EXCEPTION);
// FIXME: Fix this to send the proper MutationRecords when MutationObservers are present.
« no previous file with comments | « Source/core/editing/ApplyStyleCommand.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698