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

Unified Diff: ui/accessibility/ax_tree_serializer.h

Issue 260463003: No need to delete ax subtree when new node is added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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: ui/accessibility/ax_tree_serializer.h
diff --git a/ui/accessibility/ax_tree_serializer.h b/ui/accessibility/ax_tree_serializer.h
index 9c735e0118db1d9cb21b351a16b4b92b78e73ddf..546f95f073c7a0e2967cbd02ee97218ea574c7c4 100644
--- a/ui/accessibility/ax_tree_serializer.h
+++ b/ui/accessibility/ax_tree_serializer.h
@@ -293,9 +293,7 @@ void AXTreeSerializer<AXSourceNode>::SerializeChanges(
AXSourceNode lca = LeastCommonAncestor(node);
if (client_root_) {
- // If the LCA is anything other than the node itself, tell the
- // client to first delete the subtree rooted at the LCA.
- bool need_delete = !tree_->IsEqual(lca, node);
+ bool need_delete = false;
if (tree_->IsValid(lca)) {
// Check for any reparenting within this subtree - if there is
// any, we need to delete and reserialize the whole subtree
« 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