Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index 8fb1989aeac1d01e1a82051d1e5c418a1f46c09a..11741f018bfc17d7f35c689687f7c6d2d882e223 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -2378,7 +2378,7 @@ void WebViewImpl::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()); |
} |
} |
} |