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

Unified Diff: content/browser/frame_host/frame_tree.cc

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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
Index: content/browser/frame_host/frame_tree.cc
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc
index ceb598592d904feac325fe92b0e8e8347aa2fbce..90e3a7265c365815561086c12da3adbb8aafccd5 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -327,6 +327,11 @@ void FrameTree::SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) {
focused_frame_tree_node_id_ = node->frame_tree_node_id();
node->DidFocus();
+
+ // The accessibility tree data for the root of the frame tree keeps
+ // track of the focused frame too, so update that every time the
+ // focused frame changes.
+ root()->current_frame_host()->UpdateAXTreeData();
}
void FrameTree::SetFrameRemoveListener(

Powered by Google App Engine
This is Rietveld 408576698