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

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

Issue 1679253002: Editing: Add EditingState* argument to EditCommand::doApply. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/EditCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/EditCommand.h b/third_party/WebKit/Source/core/editing/commands/EditCommand.h
index 3e2bddbc90453e0fc9f9e73114f161b47a8995cd..18a3b1197b607dddd9bc8636726236a9c55d5692 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/EditCommand.h
@@ -34,6 +34,7 @@ namespace blink {
class CompositeEditCommand;
class Document;
+class EditingState;
class EditCommand : public RefCountedWillBeGarbageCollectedFinalized<EditCommand> {
public:
@@ -50,7 +51,8 @@ public:
virtual bool isCompositeEditCommand() const { return false; }
bool isTopLevelCommand() const { return !m_parent; }
- virtual void doApply() = 0;
+ // The |EditingState*| argument must not be nullptr.
+ virtual void doApply(EditingState*) = 0;
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698