Optimize computed bounds in AXTreeSourceArc
This change takes the O(n^2) computation of a node's bounds down to O(n) by caching previously computed bounds. It also solves a crash which seemed to result from corruption of the incoming node data. This was observed while using NY Times with webviews containing many nodes and firing many events. Change-Id: I43c9295864fdcaf3775348eb17f55a4cf66da281 Reviewed-on: https://chromium-review.googlesource.com/956413 Commit-Queue: David Tseng <dtseng@chromium.org> Reviewed-by:Yuki Awano <yawano@chromium.org> Cr-Commit-Position: refs/heads/master@{#542708}
Showing
Please register or sign in to comment