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

Unified Diff: sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp

Issue 767623004: Delete a bunch of rich text editing code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
diff --git a/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp b/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
index e34f3932b8239c079ffdf90915ac087a7f57158c..f874fd2457ef3698e7a352cae2ad0eebd20d39b6 100644
--- a/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
+++ b/sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp
@@ -135,11 +135,6 @@ void InsertParagraphSeparatorCommand::doApply()
calculateStyleBeforeInsertion(insertionPosition);
//---------------------------------------------------------------------
- // Handle special case of typing return on an empty list item
- if (breakOutOfEmptyListItem())
- return;
-
- //---------------------------------------------------------------------
// Prepare for more general cases.
bool isFirstInBlock = isStartOfBlock(visiblePos);
« no previous file with comments | « sky/engine/core/editing/CompositeEditCommand.cpp ('k') | sky/engine/core/editing/SplitTextNodeContainingElementCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698