Chromium Code Reviews
DescriptionImprove live region performance
Previously, we explicitly omitted alert nodes from being processed as live regions to address hangs in ChromeVox.
- before this patch, ChromeVox would generate output for the same live region potentially the same number of times we get a tree change under the live region container; this could be thousands of times
- we walked up the ancestry chain using a recursive call
- we walked up the final container node's ancestry chain looking for a previously outputted live region
Fixes:
- walk up ancestry chain looking for the live region container first
- move logic to check if the live region container was previously processed immediately after (without any tree walking since the map could only contain live region containers)
TEST=manual on Gmail's keyboard shortcuts page (?). Delete a message with '#'. Verify appropriate alert output.
BUG=681417
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2640283004
Cr-Commit-Position: refs/heads/master@{#445469}
Committed: https://chromium.googlesource.com/chromium/src/+/82e8eb7b5935197660fe3ef05c8ef05e9e5d8c26
Patch Set 1 #
Messages
Total messages: 10 (6 generated)
|
|||||||||||||||||||