| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index efe1fe56aa7c0a9d1a22a1ee8207305873fa102a..31e64e509ee1f9d2f2c3fdfb859ba171039921f3 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1262,13 +1262,9 @@ void WebLocalFrameImpl::moveCaretSelection(const WebPoint& pointInViewport) {
|
| // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| // needs to be audited. see http://crbug.com/590369 for more details.
|
| frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| -
|
| - Element* editable = frame()->selection().rootEditableElement();
|
| - if (!editable)
|
| - return;
|
| -
|
| - VisiblePosition position = visiblePositionForViewportPoint(pointInViewport);
|
| - frame()->selection().moveTo(position, UserTriggered);
|
| + const IntPoint pointInContents =
|
| + frame()->view()->viewportToContents(pointInViewport);
|
| + frame()->selection().moveCaretSelection(pointInContents);
|
| }
|
|
|
| bool WebLocalFrameImpl::setEditableSelectionOffsets(int start, int end) {
|
|
|