| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index 976f27ca4093ce89693f8d308997eea6b83021f8..9b43442836a2bf363f899ff4e9c97859032cbe12 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1286,7 +1286,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)
|
| @@ -1347,13 +1347,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()
|
|
|