Index: third_party/WebKit/Source/core/editing/commands/EditCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp |
index b82246f8baca4f99f584706f4ba0b1616cb9864d..ac149f4362d002fa122803176fac7125f3ff3967 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp |
@@ -27,6 +27,7 @@ |
#include "core/dom/Document.h" |
#include "core/dom/NodeTraversal.h" |
+#include "core/editing/Editor.h" |
#include "core/editing/FrameSelection.h" |
#include "core/editing/commands/CompositeEditCommand.h" |
#include "core/frame/LocalFrame.h" |
@@ -52,6 +53,18 @@ String EditCommand::textDataForInputEvent() const { |
return nullAtom; |
} |
+DataTransfer* EditCommand::dataTransferForInputEvent() const { |
+ return nullptr; |
+} |
+ |
+RangeVector* EditCommand::targetRangesForInputEvent() const { |
+ DCHECK(m_document); |
+ DCHECK(m_document->frame()); |
+ if (!m_document->frame()->editor().canEditRichly()) |
+ return nullptr; |
+ return new RangeVector(1, m_document->frame()->selection().firstRange()); |
+} |
+ |
static inline EditCommandComposition* compositionIfPossible( |
EditCommand* command) { |
if (!command->isCompositeEditCommand()) |