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

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

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.h b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.h
index 6c6562f8acc009635f81a028a44e7d2cf4583c53..6cb9787d7d541e3f782db1f80088e85e68364ff5 100644
--- a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.h
@@ -33,14 +33,16 @@ namespace blink {
class SplitTextNodeContainingElementCommand final
: public CompositeEditCommand {
public:
- static SplitTextNodeContainingElementCommand* create(Text* node, int offset) {
- return new SplitTextNodeContainingElementCommand(node, offset);
+ static SplitTextNodeContainingElementCommand* create(CommandSource source,
+ Text* node,
+ int offset) {
+ return new SplitTextNodeContainingElementCommand(source, node, offset);
}
DECLARE_VIRTUAL_TRACE();
private:
- SplitTextNodeContainingElementCommand(Text*, int offset);
+ SplitTextNodeContainingElementCommand(CommandSource, Text*, int offset);
void doApply(EditingState*) override;

Powered by Google App Engine
This is Rietveld 408576698