On 3 Oct 2024, at 1:48 pm, Ryosuke Niwa via webkit-dev <webkit-dev@lists.webkit.org> wrote:

StyleResolver* styleResolverIfExists();
StyleResolver& styleResolver();

I myself prefer this one, it’s more concise in its most common use. 
It’s also the style I’ve personally seen the most around the code I’m involved with. So I adapted to that style. 

But happy to use either.