| Index: Source/core/editing/DragCaretController.cpp
|
| diff --git a/Source/core/editing/DragCaretController.cpp b/Source/core/editing/DragCaretController.cpp
|
| index 0c9c5a37088da9dffcb4a4d86a415fe89f3bb77f..e333e576d3480ff4f0809be12598c112201d4b91 100644
|
| --- a/Source/core/editing/DragCaretController.cpp
|
| +++ b/Source/core/editing/DragCaretController.cpp
|
| @@ -54,11 +54,11 @@ void DragCaretController::setCaretPosition(const VisiblePosition& position)
|
| // involves updating compositing state.
|
| DisableCompositingQueryAsserts disabler;
|
|
|
| - if (Node* node = m_position.deepEquivalent().deprecatedNode())
|
| + if (Node* node = m_position.deepEquivalent().anchorNode())
|
| invalidateCaretRect(node);
|
| m_position = position;
|
| Document* document = nullptr;
|
| - if (Node* node = m_position.deepEquivalent().deprecatedNode()) {
|
| + if (Node* node = m_position.deepEquivalent().anchorNode()) {
|
| invalidateCaretRect(node);
|
| document = &node->document();
|
| }
|
| @@ -104,8 +104,8 @@ DEFINE_TRACE(DragCaretController)
|
|
|
| void DragCaretController::paintDragCaret(LocalFrame* frame, GraphicsContext* p, const LayoutPoint& paintOffset, const LayoutRect& clipRect) const
|
| {
|
| - if (m_position.deepEquivalent().deprecatedNode()->document().frame() == frame)
|
| - paintCaret(m_position.deepEquivalent().deprecatedNode(), p, paintOffset, clipRect);
|
| + if (m_position.deepEquivalent().anchorNode()->document().frame() == frame)
|
| + paintCaret(m_position.deepEquivalent().anchorNode(), p, paintOffset, clipRect);
|
| }
|
|
|
| } // namespace blink
|
|
|