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

Unified Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 2851093002: Drop the retargeting of accNavigate in BrowserAccessibilityWin (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index 162f191772fc133384ef8cfaf581aaa7d4b27aa1..8a1e0e5840dd041b7c8314f4a28621d8988bdc7a 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -491,16 +491,17 @@ STDMETHODIMP BrowserAccessibilityWin::accNavigate(LONG nav_dir,
VARIANT start,
VARIANT* end) {
WIN_ACCESSIBILITY_API_HISTOGRAM(UMA_API_ACC_NAVIGATE);
- BrowserAccessibilityWin* target = GetTargetFromChildID(start);
- if (!target)
- return E_INVALIDARG;
// Forward all directions but NAVDIR_ to the platform node implementation.
if (nav_dir != NAVDIR_DOWN && nav_dir != NAVDIR_UP &&
nav_dir != NAVDIR_LEFT && nav_dir != NAVDIR_RIGHT) {
- return target->GetPlatformNodeWin()->accNavigate(nav_dir, start, end);
+ return GetPlatformNodeWin()->accNavigate(nav_dir, start, end);
}
+ BrowserAccessibilityWin* target = GetTargetFromChildID(start);
+ if (!target)
+ return E_INVALIDARG;
+
BrowserAccessibility* result = nullptr;
switch (nav_dir) {
case NAVDIR_DOWN:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698