Commit 5550daf6 authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

No ax children changed events for caret blinks

Avoid unnecessary processor usage for blinking caret, as accessibility
children changed events are not needed. The caret is an ignored object,
meaning that it is not even exposed as a child.

These extra events are especially prevalent when the JAWS screen reader
is running, because it increases the caret blink rate in order to track
it better in legacy apps.

Bug: None
Change-Id: I83b20883dca9f73c5f529f23e5b99195bb0982a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225621
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774608}
parent 26ce0876
...@@ -511,8 +511,10 @@ void View::SetVisible(bool visible) { ...@@ -511,8 +511,10 @@ void View::SetVisible(bool visible) {
// Notify the parent. // Notify the parent.
if (parent_) { if (parent_) {
parent_->ChildVisibilityChanged(this); parent_->ChildVisibilityChanged(this);
parent_->NotifyAccessibilityEvent(ax::mojom::Event::kChildrenChanged, if (!view_accessibility_ || !view_accessibility_->IsIgnored()) {
true); parent_->NotifyAccessibilityEvent(ax::mojom::Event::kChildrenChanged,
true);
}
} }
// This notifies all sub-views recursively. // This notifies all sub-views recursively.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment