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

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

Issue 1245843003: [CodeHealth] Use Position::anchorNode instead of deprecatedNode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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/DeleteSelectionCommand.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('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 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
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698