Do not clear children of inserted nodes
This code in AXNodeObject::InsertChild() to clear the inserted child's children, was added in WebKit, to support a use case that no longer exists. Specifically, an aria-hidden=false descendant of aria-hidden=true is no longer exposed. The spec may change again to allow that, but it would better to find an implementation that does not require reworking entire subtrees whenever a node changes. Performance improvement for dynamic changes in large subtrees. Also required for CL:2192752 to land. AX-Relnotes: n/a Bug: 1107988 Change-Id: I43f1fc880e7740cb937f273db76c6429e43e8d29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2204154Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Commit-Queue: Aaron Leventhal <aleventhal@chromium.org> Cr-Commit-Position: refs/heads/master@{#802786}
Showing
Please register or sign in to comment