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

Unified Diff: third_party/WebKit/Source/web/TextFinder.cpp

Issue 2238613002: Support output for Chrome's native find in ChromeVox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@text_markers
Patch Set: Don't forget to bit shift in SendTreeChanges (checking against cached overall tree filter). Created 4 years, 4 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 | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/TextFinder.cpp
diff --git a/third_party/WebKit/Source/web/TextFinder.cpp b/third_party/WebKit/Source/web/TextFinder.cpp
index b136ba9bd42aacbdd400e9c2e4c2982b11d4adc1..bd929e8eb8054aa84df31d390fe1f2ea77b4c60b 100644
--- a/third_party/WebKit/Source/web/TextFinder.cpp
+++ b/third_party/WebKit/Source/web/TextFinder.cpp
@@ -237,6 +237,11 @@ void TextFinder::reportFindInPageResultToAccessibility(int identifier)
if (!startObject || !endObject)
return;
+ // Notify the client of new text marker data.
+ axObjectCache->postNotification(startObject, AXObjectCache::AXNotification::AXChildrenChanged);
+ if (startObject != endObject)
+ axObjectCache->postNotification(endObject, AXObjectCache::AXNotification::AXChildrenChanged);
+
if (ownerFrame().client()) {
ownerFrame().client()->handleAccessibilityFindInPageResult(
identifier, m_activeMatchIndex + 1,
« no previous file with comments | « chrome/renderer/resources/extensions/automation/automation_node.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698