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

Unified Diff: third_party/WebKit/Source/core/page/FocusController.cpp

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)
Patch Set: Fix mac compile error Created 4 years, 3 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
Index: third_party/WebKit/Source/core/page/FocusController.cpp
diff --git a/third_party/WebKit/Source/core/page/FocusController.cpp b/third_party/WebKit/Source/core/page/FocusController.cpp
index b12d00e65daf5be5c67ba009d8722122e1bcb590..afe9995841f5b9a91947a6efaaa4bd1ef23e81b5 100644
--- a/third_party/WebKit/Source/core/page/FocusController.cpp
+++ b/third_party/WebKit/Source/core/page/FocusController.cpp
@@ -1001,7 +1001,7 @@ bool FocusController::advanceFocusInDocumentOrder(LocalFrame* frame, Element* st
if (caretBrowsing) {
Position position = firstPositionInOrBeforeNode(element);
- VisibleSelection newSelection(position, position);
+ VisibleSelection newSelection = createVisibleSelectionDeprecated(position, position);
frame->selection().setSelection(newSelection);
}

Powered by Google App Engine
This is Rietveld 408576698