Switch AxObjectCacheBase to use downcast helpers
AxObjectCacheBase is the only direct subclass of AxObjectCache, so it is safe to unconditionally downcast from later to the former. This CL enforces that premise by making AxObjectCache's ctor private, and stating AxObjectCacheBase as a friend class of it. Additionally, the CL: - removes the macro-based cast helper ToAXObjectCacheBase from being used in t_p/blink/renderer/core/editing/finder/text_finder.cc, and uses implicit cast. - switches t_p/blink/renderer/core/exported/web_page_popup_impl.cc to use the newly added downcast trait helper. BUG=891908 Change-Id: Iab8f129b1bd330306b1761de58bc4b17ee2ed6a8 Reviewed-on: https://chromium-review.googlesource.com/c/1494677Reviewed-by:Sergio Villar <svillar@igalia.com> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#636460}
Showing
Please register or sign in to comment