Index: Source/core/editing/DragCaretController.cpp |
diff --git a/Source/core/editing/DragCaretController.cpp b/Source/core/editing/DragCaretController.cpp |
index 7bc91b9346eb230fbb320908e6e316aff7476cf6..df2a49fbd4d1a2d98bc4ac7369fed4bb28dbc64f 100644 |
--- a/Source/core/editing/DragCaretController.cpp |
+++ b/Source/core/editing/DragCaretController.cpp |
@@ -107,6 +107,11 @@ LayoutBlock* DragCaretController::caretLayoutObject() const |
return CaretBase::caretLayoutObject(m_position.deepEquivalent().anchorNode()); |
} |
+bool DragCaretController::isContentEditable() const |
+{ |
+ return rootEditableElementOf(m_position); |
+} |
+ |
void DragCaretController::paintDragCaret(LocalFrame* frame, GraphicsContext* p, const LayoutPoint& paintOffset, const LayoutRect& clipRect) const |
{ |
if (m_position.deepEquivalent().anchorNode()->document().frame() == frame) |