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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2442673002: Get rid of createVisibleSelection() taking one Position (Closed)
Patch Set: 2016-10-24T17:42:38 Created 4 years, 2 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/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index adfc9fb85a3e8be9bdbd4f139f17e07aaf1521d8..a54fa13ffba0ec46eba76523cf780028a2f858db 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -447,7 +447,7 @@ void WebFrameWidgetImpl::setFocus(bool enable) {
// caret back to the beginning of the text.
Position position(element, 0);
focusedFrame->selection().setSelection(
- createVisibleSelection(position, SelDefaultAffinity));
+ SelectionInDOMTree::Builder().collapse(position).build());
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698