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

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

Issue 1564863002: Get rid of AXScrollView and AXScrollbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dump_oopif_3
Patch Set: Fix Android expectation Created 4 years, 11 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 | content/renderer/accessibility/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility.cc
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc
index 20beb7ffba32ff4a8581d2d08d7df9d0d32c7af9..f28f11b94b7885c86e897f2d0cf4a6dcd5d21cf4 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -699,11 +699,7 @@ bool BrowserAccessibility::IsWebAreaForPresentationalIframe() const {
if (!parent)
return false;
- BrowserAccessibility* grandparent = parent->GetParent();
- if (!grandparent)
- return false;
-
- return grandparent->GetRole() == ui::AX_ROLE_IFRAME_PRESENTATIONAL;
+ return parent->GetRole() == ui::AX_ROLE_IFRAME_PRESENTATIONAL;
}
bool BrowserAccessibility::IsControl() const {
« no previous file with comments | « no previous file | content/renderer/accessibility/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698