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

Unified Diff: Source/core/page/FocusController.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/layout/LayoutTreeAsText.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FocusController.cpp
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp
index 810b716a4c2ce463eaccc2eb3123e8c77c1a75f9..c9da3f80778f8b96649687d0561c3aef0015c0c6 100644
--- a/Source/core/page/FocusController.cpp
+++ b/Source/core/page/FocusController.cpp
@@ -688,7 +688,7 @@ bool FocusController::advanceFocusInDocumentOrder(WebFocusType type, bool initia
bool caretBrowsing = frame->settings() && frame->settings()->caretBrowsingEnabled();
if (caretBrowsing && !currentNode)
- currentNode = frame->selection().start().deprecatedNode();
+ currentNode = frame->selection().start().anchorNode();
document->updateLayoutIgnorePendingStylesheets();
@@ -783,7 +783,7 @@ static void clearSelectionIfNeeded(LocalFrame* oldFocusedFrame, LocalFrame* newF
if (caretBrowsing)
return;
- Node* selectionStartNode = selection.selection().start().deprecatedNode();
+ Node* selectionStartNode = selection.selection().start().anchorNode();
if (selectionStartNode == newFocusedElement || selectionStartNode->isDescendantOf(newFocusedElement))
return;
« no previous file with comments | « Source/core/layout/LayoutTreeAsText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698