downcast() should return a smart pointer when passed in a smart pointer. Otherwise, it forces us to use the less-safe static_pointer_cast() / static_reference_cast() to cast without causing ref counting churn.
Pull request: https://github.com/WebKit/WebKit/pull/17655
Committed 267923@main (cea23dc5de28): <https://commits.webkit.org/267923@main> Reviewed commits have been landed. Closing PR #17655 and removing active labels.
<rdar://problem/115391755>