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

Unified Diff: Source/core/editing/Caret.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/BreakBlockquoteCommand.cpp ('k') | Source/core/editing/CompositeEditCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Caret.cpp
diff --git a/Source/core/editing/Caret.cpp b/Source/core/editing/Caret.cpp
index 3c2df5451fee05704ba53c79437e9d3f243c8834..755f542cbfba18dd81c2311770fad23eaeb48b5f 100644
--- a/Source/core/editing/Caret.cpp
+++ b/Source/core/editing/Caret.cpp
@@ -97,7 +97,7 @@ bool CaretBase::updateCaretRect(Document* document, const PositionWithAffinity&
if (caretPosition.position().isNull())
return false;
- ASSERT(caretPosition.position().deprecatedNode()->layoutObject());
+ ASSERT(caretPosition.position().anchorNode()->layoutObject());
// First compute a rect local to the layoutObject at the selection start.
LayoutObject* layoutObject;
@@ -105,7 +105,7 @@ bool CaretBase::updateCaretRect(Document* document, const PositionWithAffinity&
// Get the layoutObject that will be responsible for painting the caret
// (which is either the layoutObject we just found, or one of its containers).
- m_caretPainter = caretLayoutObject(caretPosition.position().deprecatedNode());
+ m_caretPainter = caretLayoutObject(caretPosition.position().anchorNode());
mapCaretRectToCaretPainter(layoutObject, m_caretPainter, m_caretLocalRect);
« no previous file with comments | « Source/core/editing/BreakBlockquoteCommand.cpp ('k') | Source/core/editing/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698