// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/accessibility/ax_tree_update_util.h" #include "base/metrics/histogram_macros.h" #include "ui/accessibility/accessibility_features.h" #include "ui/accessibility/ax_tree_update.h" namespace ui { // Two tree updates can be merged into one if the second one // doesn't clear a subtree, doesn't have new tree data, and // doesn't have a new root id - in other words the second tree // update consists of only changes to nodes. bool AXTreeUpdatesCanBeMerged(const AXTreeUpdate& u1, const AXTreeUpdate& u2) { … } bool MergeAXTreeUpdates(const std::vector<AXTreeUpdate>& src, std::vector<AXTreeUpdate>* dst) { … } } // namespace ui