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

Unified Diff: WebCore/editing/IndentOutdentCommand.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
« no previous file with comments | « WebCore/editing/CompositeEditCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/editing/IndentOutdentCommand.cpp
===================================================================
--- WebCore/editing/IndentOutdentCommand.cpp (revision 70595)
+++ WebCore/editing/IndentOutdentCommand.cpp (working copy)
@@ -130,6 +130,9 @@
else
nodeToSplitTo = editableRootForPosition(start);
+ if (!nodeToSplitTo)
+ return;
+
RefPtr<Node> outerBlock = (start.node() == nodeToSplitTo) ? start.node() : splitTreeToNode(start.node(), nodeToSplitTo);
if (!targetBlockquote) {
« no previous file with comments | « WebCore/editing/CompositeEditCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698