| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index 418eb40597c102f668079733dda017fc4a88daad..fb4dcc93ec4418a9caf0db0bd23cf1a5aee44339 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()
|
|
|