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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h

Issue 1620653002: Pass Only the Pasted Text to Spellchecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
index 5cbf2914040b2a88adea4e166a6a691af71a8ff4..c91293c6b5ab33c6f211f5e4dc9ed3f867a13625 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
@@ -52,6 +52,8 @@ public:
return adoptRefWillBeNoop(new ReplaceSelectionCommand(document, fragment, options, action));
}
+ EphemeralRange insertedRange() const;
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -118,6 +120,9 @@ private:
EditAction m_editAction;
bool m_sanitizeFragment;
bool m_shouldMergeEnd;
+
+ Position m_startOfInsertedRange;
+ Position m_endOfInsertedRange;
};
DEFINE_TYPE_CASTS(ReplaceSelectionCommand, CompositeEditCommand, command, command->isReplaceSelectionCommand(), command.isReplaceSelectionCommand());

Powered by Google App Engine
This is Rietveld 408576698