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

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: Add cross-site iframe test too 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/modules/accessibility/AXObjectCacheImpl.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 dbce5b06b65f7e4ff4ef9e4783670e765bcfada8..0e9930d3ae1231bb296a3791e5eb19d08df13cb6 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -2156,19 +2156,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()) {
dcheng 2016/05/25 17:44:38 I like this because it looks simpler, but I don't
dmazzoni 2016/05/25 17:53:51 I don't think result.innerNodeOrImageMapImage()->d
dcheng 2016/05/25 18:03:00 Hmm. It looks like the original code is from the i
pdr. 2016/05/26 21:32:48 This change seems reasonable to me. LGTM
+ 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/modules/accessibility/AXObjectCacheImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698