Don't change processed ancestors in DidInsertChildrenOfNode()
A previous CL tried to defer work in DidInsertChildrenOfNode() so that occurred when layout was clean, but the change was incorrect because: 1. DidInsertChildrenOfNodeWithCleanLayout() wasn't even called! 2. Even if that method is called via DeferTreeUpdate, the loop would not iterate as before, because by the time it's called, Get(node) will return different results for some nodes. Therefore, do the loop right away, and call TextChanged() on the first ancestor with an AXObject, as TextChanged() defers its work anyway. Bug: 1136770 Change-Id: I5ae270317f506bd7ba4fc3cf27b7728b5dca73a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533139 Commit-Queue: Aaron Leventhal <aleventhal@chromium.org> Auto-Submit: Aaron Leventhal <aleventhal@chromium.org> Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#827066}
Showing
Please register or sign in to comment