mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Security: https://vuxml.freebsd.org/freebsd/5c777f88-40ff-4e1e-884b-ad63dfb9bb15.html Security: https://vuxml.freebsd.org/freebsd/9c91e1f8-f255-4b57-babe-2e385558f1dc.html
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
--- ui/accessibility/ax_tree.cc.orig 2025-07-02 06:08:04 UTC
|
|
+++ ui/accessibility/ax_tree.cc
|
|
@@ -867,7 +867,7 @@ bool AXTree::ComputeNodeIsIgnoredChanged(
|
|
return old_node_is_ignored != new_node_is_ignored;
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
ExtraAnnouncementNodes::ExtraAnnouncementNodes(AXNode* root) {
|
|
assertive_node_ = CreateNode("assertive", root);
|
|
polite_node_ = CreateNode("polite", root);
|
|
@@ -960,7 +960,7 @@ AXNode* AXTree::GetFromId(AXNodeID id) const {
|
|
|
|
void AXTree::Destroy() {
|
|
base::ElapsedThreadTimer timer;
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
ClearExtraAnnouncementNodes();
|
|
#endif // BUILDFLAG(IS_LINUX)
|
|
|
|
@@ -2181,7 +2181,7 @@ void AXTree::NotifyNodeAttributesWillChange(
|
|
new_data);
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
void AXTree::ClearExtraAnnouncementNodes() {
|
|
if (!extra_announcement_nodes_) {
|
|
return;
|
|
@@ -2570,7 +2570,7 @@ bool AXTree::CreateNewChildVector(
|
|
AXTreeUpdateState* update_state) {
|
|
DCHECK(GetTreeUpdateInProgressState());
|
|
bool success = true;
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
// If the root node has children added, clear the extra announcement nodes,
|
|
// which should always have their indices as the last two children of the root
|
|
// node. They will be recreated if needed, and given the correct indices.
|