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

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: Force re-serialization when focus changes 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 | « no previous file | content/renderer/accessibility/renderer_accessibility.cc » ('j') | 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 35dbf23523ca57dff14bfab399fd6736210eb3f7..cd6d2f87338dafd1335d979b1111eccaa09d1a01 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -200,7 +200,9 @@ void BlinkAXTreeSource::GetChildren(
if (parent.role() == blink::WebAXRoleStaticText) {
blink::WebAXObject ancestor = parent;
while (!ancestor.isDetached()) {
- if (ancestor.axID() == accessibility_focus_id_) {
+ int32_t focus_id = GetMainDocument().focusedAccessibilityObject().axID();
+ if (ancestor.axID() == accessibility_focus_id_ ||
+ (ancestor.axID() == focus_id && ancestor.isEditable())) {
parent.loadInlineTextBoxes();
break;
}
« no previous file with comments | « no previous file | content/renderer/accessibility/renderer_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698