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

Unified Diff: content/renderer/accessibility/blink_ax_tree_source.cc

Issue 1897443002: Load inline text boxes for focused element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/renderer/accessibility/blink_ax_tree_source.cc
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc
index ac907ab1f406e9439be257da27e283e4c71f01e8..df8585643f366f14185966bf23746f1ca467ab74 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -200,7 +200,8 @@ void BlinkAXTreeSource::GetChildren(
if (parent.role() == blink::WebAXRoleStaticText) {
blink::WebAXObject ancestor = parent;
while (!ancestor.isDetached()) {
- if (ancestor.axID() == accessibility_focus_id_) {
+ if (ancestor.axID() == accessibility_focus_id_ ||
+ ancestor == GetMainDocument().focusedAccessibilityObject()) {
David Tseng 2016/04/18 23:38:13 Could this possibly give you more than you want? F
parent.loadInlineTextBoxes();
break;
}
« 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