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

Unified Diff: Source/web/TextFinder.cpp

Issue 719913002: Call reportFindInPageResultToAccessibility from additional code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/TextFinder.cpp
diff --git a/Source/web/TextFinder.cpp b/Source/web/TextFinder.cpp
index 4a12362886c3429f00a1dbc966cad2c34f457a0c..120cb3ee6b34ef0490b773f6dac8215552bc18aa 100644
--- a/Source/web/TextFinder.cpp
+++ b/Source/web/TextFinder.cpp
@@ -191,7 +191,6 @@ bool TextFinder::find(int identifier, const WebString& searchText, const WebFind
if (selectionRect) {
*selectionRect = ownerFrame().frameView()->contentsToWindow(m_activeMatch->boundingBox());
reportFindInPageSelection(*selectionRect, m_activeMatchIndexInCurrentFrame + 1, identifier);
- reportFindInPageResultToAccessibility(identifier);
}
}
@@ -449,6 +448,10 @@ void TextFinder::reportFindInPageSelection(const WebRect& selectionRect, int act
// Update the UI with the latest selection rect.
if (ownerFrame().client())
ownerFrame().client()->reportFindInPageSelection(identifier, ordinalOfFirstMatch() + activeMatchOrdinal, selectionRect);
+
+ // Update accessibility too, so if the user commits to this query
+ // we can move accessibility focus to this result.
+ reportFindInPageResultToAccessibility(identifier);
}
void TextFinder::resetMatchCount()
« 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