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

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

Issue 435733002: Have getChildNodes() take a ContainerNode in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
Index: Source/core/editing/SplitElementCommand.cpp
diff --git a/Source/core/editing/SplitElementCommand.cpp b/Source/core/editing/SplitElementCommand.cpp
index 3556a543aa9d3012bfa2ef38914e3675b5446249..6740afdd35f797925440f45ae05e475cc9c64bb4 100644
--- a/Source/core/editing/SplitElementCommand.cpp
+++ b/Source/core/editing/SplitElementCommand.cpp
@@ -82,9 +82,8 @@ void SplitElementCommand::doUnapply()
if (!m_element1 || !m_element1->hasEditableStyle() || !m_element2->hasEditableStyle())
return;
- WillBeHeapVector<RefPtrWillBeMember<Node> > children;
- for (Node* node = m_element1->firstChild(); node; node = node->nextSibling())
- children.append(node);
+ NodeVector children;
+ getChildNodes(*m_element1, children);
RefPtrWillBeRawPtr<Node> refChild = m_element2->firstChild();

Powered by Google App Engine
This is Rietveld 408576698