| 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 76fa9d1908fa0c4ac497386d16303e86cb8bbd11..4af64b97e27f4af6cb73fe6aee091ad35d50060c 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2196,19 +2196,12 @@ WebInputEventResult WebViewImpl::handleInputEvent(const WebInputEvent& inputEven
|
|
|
| // Find the right target frame. See issue 1186900.
|
| HitTestResult result = hitTestResultForRootFramePos(pme.position());
|
| - Frame* targetFrame;
|
| - if (result.innerNodeOrImageMapImage())
|
| - targetFrame = result.innerNodeOrImageMapImage()->document().frame();
|
| - else
|
| - targetFrame = m_page->focusController().focusedOrMainFrame();
|
| -
|
| - if (targetFrame->isLocalFrame()) {
|
| - LocalFrame* targetLocalFrame = toLocalFrame(targetFrame);
|
| - Document* document = targetLocalFrame->document();
|
| + if (result.innerNodeFrame()) {
|
| + Document* document = result.innerNodeFrame()->document();
|
| if (document) {
|
| AXObjectCache* cache = document->existingAXObjectCache();
|
| if (cache)
|
| - cache->onTouchAccessibilityHover(pme.position());
|
| + cache->onTouchAccessibilityHover(result.roundedPointInInnerNodeFrame());
|
| }
|
| }
|
| }
|
|
|