| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index b4b9eaedcccf30a82306f5b2da1d1a06845429a3..e6d2868bec3b8e9c8dfbedcff1d1762e933d52cd 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1261,7 +1261,7 @@ void WebLocalFrameImpl::selectRange(const WebRange& webRange)
|
|
|
| void WebLocalFrameImpl::moveRangeSelectionExtent(const WebPoint& point)
|
| {
|
| - frame()->selection().moveRangeSelectionExtent(visiblePositionForViewportPoint(point));
|
| + frame()->selection().moveRangeSelectionExtent(frame()->view()->viewportToContents(point));
|
| }
|
|
|
| void WebLocalFrameImpl::moveRangeSelection(const WebPoint& baseInViewport, const WebPoint& extentInViewport, WebFrame::TextGranularity granularity)
|
| @@ -1322,13 +1322,7 @@ void WebLocalFrameImpl::setCaretVisible(bool visible)
|
|
|
| VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoint& pointInViewport)
|
| {
|
| - HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping;
|
| - HitTestResult result(request, frame()->view()->viewportToContents(pointInViewport));
|
| - frame()->document()->layoutView()->hitTest(result);
|
| -
|
| - if (Node* node = result.innerNode())
|
| - return frame()->selection().selection().visiblePositionRespectingEditingBoundary(result.localPoint(), node);
|
| - return VisiblePosition();
|
| + return visiblePositionForContentsPoint(frame()->view()->viewportToContents(pointInViewport), frame());
|
| }
|
|
|
| WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported()
|
|
|