| 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;
|
|
|
|
|