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

Unified Diff: Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp

Issue 10536125: Merge 119870 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 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/WebCore/editing/CompositeEditCommand.cpp ('k') | Source/WebCore/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
===================================================================
--- Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (revision 120113)
+++ Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp (working copy)
@@ -376,12 +376,7 @@
}
}
- while (n && n != blockToInsert) {
- Node *next = n->nextSibling();
- removeNode(n);
- appendNode(n, blockToInsert);
- n = next;
- }
+ moveRemainingSiblingsToNewParent(n, blockToInsert.get(), blockToInsert);
}
// Handle whitespace that occurs after the split
« no previous file with comments | « Source/WebCore/editing/CompositeEditCommand.cpp ('k') | Source/WebCore/editing/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698