Use const LayoutObject* in AXObjectCache where possible.
We can't use const LayoutObject* throughout, because sometimes we do call non-const methods, for example to scroll a LayoutObject in response to an accessibility action. What this change does is make it so that to create a new AXObject from a LayoutObject*, you need a non-const pointer, but to just retrieve an existing AXObject, it's okay if you just have a const LayoutObject*. I think that logically makes sense. This is a pure refactoring that shouldn't have any side effects. I'm making this change because it will make landing a future change I'm working on a bit easier. Bug: 1109081 Change-Id: Ic03525b4faee20e7d8c7d3cb9c6141281036a982 AX-Relnotes: N/A Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315822 Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by:Nektarios Paisios <nektar@chromium.org> Cr-Commit-Position: refs/heads/master@{#791395}
Showing
Please register or sign in to comment