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

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

Issue 199693003: Send AXLayoutComplete even when document hasn't finished loading yet (reland) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/frame/FrameView.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 fe407068c151613a9a1877548a25fb5b6719a42e..fa086363c78c845c9123c42ac274ccd862fe5542 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -804,6 +804,20 @@ void AXObjectCache::handleScrollbarUpdate(ScrollView* view)
}
}
+void AXObjectCache::handleLayoutComplete(RenderObject* renderer)
+{
+ if (!renderer)
+ return;
+
+ m_computedObjectAttributeCache->clear();
+
+ // Create the AXObject if it didn't yet exist - that's always safe at the end of a layout, and it
+ // allows an AX notification to be sent when a page has its first layout, rather than when the
+ // document first loads.
+ if (AXObject* obj = getOrCreate(renderer))
+ postNotification(obj, obj->document(), AXLayoutComplete, true);
+}
+
void AXObjectCache::handleAriaExpandedChange(Node* node)
{
if (AXObject* obj = getOrCreate(node))
« no previous file with comments | « Source/core/accessibility/AXObjectCache.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698