Per https://github.com/WebKit/WebKit/wiki/Smart-Pointer-Usage-Guidelines: > Every object passed to a non-trivial function as an argument (including "this" pointer) should be stored as a Ref, RefPtr, CheckedRef, or CheckedPtr in the caller’s local scope Let's bring this function inline with this guidance since AccessibilityObject::addChild is not trivial. This RefPtr will be free in the common case that there is no remote SVG root object to add.
<rdar://problem/107674710>
Created attachment 465783 [details] Patch
Committed 262656@main (ff96b4d0c120): <https://commits.webkit.org/262656@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465783 [details].