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

Unified Diff: WebCore/editing/CompositeEditCommand.cpp

Issue 4182003: Merge 70594 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 2 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: WebCore/editing/CompositeEditCommand.cpp
===================================================================
--- WebCore/editing/CompositeEditCommand.cpp (revision 70595)
+++ WebCore/editing/CompositeEditCommand.cpp (working copy)
@@ -1175,6 +1175,8 @@
RefPtr<Node> node;
for (node = start; node && node->parent() != end; node = node->parent()) {
+ if (!node->parent()->isElementNode())
+ break;
VisiblePosition positionInParent(Position(node->parent(), 0), DOWNSTREAM);
VisiblePosition positionInNode(Position(node, 0), DOWNSTREAM);
if (positionInParent != positionInNode)
« no previous file with comments | « LayoutTests/editing/execCommand/indent-node-to-split-to-crash-expected.txt ('k') | WebCore/editing/IndentOutdentCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698