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

Unified Diff: Source/core/editing/DragCaretController.cpp

Issue 1312213008: Move member function rootEditableElement() out from VisiblePosition class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-31T17:55:42 Include VisiblePosition.h Created 5 years, 4 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
« no previous file with comments | « Source/core/editing/DragCaretController.h ('k') | Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/editing/DragCaretController.h ('k') | Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698