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

Unified Diff: content/browser/accessibility/browser_accessibility_manager_mac.mm

Issue 1030373003: Fix regression in Mac AX live region support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scroll_container_relative_2
Patch Set: Check for subtree created too Created 5 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
« 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_manager_mac.mm
diff --git a/content/browser/accessibility/browser_accessibility_manager_mac.mm b/content/browser/accessibility/browser_accessibility_manager_mac.mm
index ab9272392479b2da4255aec822b141de874ad4b2..1361164af50e99f5959471dad1462b147ec576d6 100644
--- a/content/browser/accessibility/browser_accessibility_manager_mac.mm
+++ b/content/browser/accessibility/browser_accessibility_manager_mac.mm
@@ -150,6 +150,8 @@ void BrowserAccessibilityManagerMac::OnAtomicUpdateFinished(
bool created_live_region = false;
for (size_t i = 0; i < changes.size(); ++i) {
+ if (changes[i].type != NODE_CREATED && changes[i].type != SUBTREE_CREATED)
+ continue;
BrowserAccessibility* obj = GetFromAXNode(changes[i].node);
if (obj && obj->HasStringAttribute(ui::AX_ATTR_LIVE_STATUS)) {
created_live_region = true;
« 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