Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2009283002: Fix touch accessibility events in WebViews and iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable cross-site test temporarily Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEventConversion.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEventConversion.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698