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

Unified Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 59663005: Update the accessibility tree when a modal dialog is opened/closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 7 years, 1 month 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 | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index 950b465e1631fe9d9d3ef2f458929255275033e8..970156ca2da6dae5b1d5e31ab43cc98680a87656 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -650,6 +650,22 @@ void AXObjectCache::updateCacheAfterNodeIsAttached(Node* node)
get(node);
}
+static void inertSubtreesChanged(AXObject* object)
+{
+ if (object->notifyIfIgnoredValueChanged())
+ return;
+ AXObject::AccessibilityChildrenVector children = object->children();
+ size_t count = children.size();
+ for (size_t i = 0; i < count; ++i)
+ inertSubtreesChanged(children[i].get());
+}
+
+void AXObjectCache::handleInertSubtreesChanged()
+{
+ m_computedObjectAttributeCache->clear();
+ inertSubtreesChanged(rootObject());
+}
+
void AXObjectCache::childrenChanged(Node* node)
{
childrenChanged(get(node));
« no previous file with comments | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698