> On Aug 21, 2023, at 4:51 PM, Ryosuke Niwa via webkit-dev > <[email protected]> wrote: > >> On Aug 21, 2023, at 4:50 PM, Tim Horton <[email protected]> wrote: >> >>> On Aug 21, 2023, at 4:42 PM, Ryosuke Niwa <[email protected]> wrote: >>> >>>> On Aug 21, 2023, at 4:41 PM, Darin Adler <[email protected]> wrote: >>>> >>>>> On Aug 21, 2023, at 4:39 PM, Ryosuke Niwa <[email protected]> wrote: >>>>> >>>>> Alternatively, we could add a new member function which returns >>>>> CheckedPtr like `pageChecked()`. >>>> >>>> Yes, I think that would be a good approach that would complement the >>>> static checker. >>> >>> Okay, let’s go with this solution since others have expressed concerns for >>> ref churns in the past. >> >> So, to be clear, this example: >> >>> page()->document()->foo() >> >> >> would become: >> >>> page()->documentChecked()->foo()? >> >> (only `checked` for the deepest getter before the complex call)? > > Yes.
Now that I’m thinking about this more, we should probably call this checkedDocument() to be aligned with protectedX pattern. - R. Niwa
_______________________________________________ webkit-dev mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-dev

