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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp
index a4157b5d7e59474e64ffd7ea6209cce7b8bfc598..6df55f35c7959fcbee4c610b52215cdfc1bcf6c2 100644
--- a/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/SplitTextNodeContainingElementCommand.cpp
@@ -34,9 +34,12 @@
namespace blink {
SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand(
+ CommandSource source,
Text* text,
int offset)
- : CompositeEditCommand(text->document()), m_text(text), m_offset(offset) {
+ : CompositeEditCommand(text->document(), source),
+ m_text(text),
+ m_offset(offset) {
DCHECK(m_text);
DCHECK_GT(m_text->length(), 0u);
}

Powered by Google App Engine
This is Rietveld 408576698