Since we use the provided Document in KeyframeEffect::processKeyframes() and it's just a reference, we should ensure it's kept alive while this method is called.
rdar://93513759
Pull request: https://github.com/WebKit/WebKit/pull/796
Landed https://commits.webkit.org/250756@main (r294497)!
We are really going to have to discuss this as a team. Our overall strategy was supposed to be that callers have to ref/deref things, not that functions must protect the things they are passed. So the caller is supposed to ref/deref the document, not the processKeyframes function. But maybe that strategy is impractical, since even a Node's document is not ref'd if the Node is moved to another document? If we do need to "protect" things then we need a discipline for knowing when itβs needed.