• dtseng's avatar
    Track all changed nodes during an update · 5a7b3d98
    dtseng authored
    While deserializing, make a note of all changed nodes via id before performing any tree changes/removals.
    
    While removing (non-atomically), reference the changed list to ensure we notify delegates of nodes that will actually be deleted and not just deleted then re-created as part of bookkeeping to enforce the "non-reparenting" invariant inside of AXTree::CreateChildVector.
    
    BUG=642799
    TEST=for each of the reproductions in the bug, ensure the automation api (as a client) does not destroy then re-create js objects; rather, ensure it re-uses them for reparented trees.
    
    Review-Url: https://codereview.chromium.org/2080573003
    Cr-Commit-Position: refs/heads/master@{#417207}
    5a7b3d98
test_ax_node_wrapper.cc 4.02 KB