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

Unified Diff: sky/engine/core/editing/TypingCommand.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
« no previous file with comments | « sky/engine/core/editing/SplitTextNodeContainingElementCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/TypingCommand.cpp
diff --git a/sky/engine/core/editing/TypingCommand.cpp b/sky/engine/core/editing/TypingCommand.cpp
index f528c6eb9ad6a0833e6fa5ad996da2e3d6c4fd95..3326740079010620457c3748e82ef413fae9c675 100644
--- a/sky/engine/core/editing/TypingCommand.cpp
+++ b/sky/engine/core/editing/TypingCommand.cpp
@@ -399,11 +399,6 @@ void TypingCommand::deleteKeyPressed(TextGranularity granularity)
selectionAfterUndo = selectionToDelete;
break;
case CaretSelection: {
- // After breaking out of an empty mail blockquote, we still want continue with the deletion
- // so actual content will get deleted, and not just the quote style.
- if (breakOutOfEmptyMailBlockquotedParagraph())
- typingAddedToOpenCommand(DeleteKey);
-
m_smartDelete = false;
OwnPtr<FrameSelection> selection = FrameSelection::create();
@@ -412,11 +407,6 @@ void TypingCommand::deleteKeyPressed(TextGranularity granularity)
VisiblePosition visibleStart(endingSelection().visibleStart());
if (visibleStart.previous(CannotCrossEditingBoundary).isNull()) {
- // When the caret is at the start of the editable area in an empty list item, break out of the list item.
- if (breakOutOfEmptyListItem()) {
- typingAddedToOpenCommand(DeleteKey);
- return;
- }
// When there are no visible positions in the editing root, delete its entire contents.
if (visibleStart.next(CannotCrossEditingBoundary).isNull() && makeEditableRootEmpty()) {
typingAddedToOpenCommand(DeleteKey);
« no previous file with comments | « sky/engine/core/editing/SplitTextNodeContainingElementCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698