Use more efficient treeOrder<>() in compareDeclarativeAnimationOwningElementPositionsInDocumentTreeOrder() instead of Node::compareDocumentPosition(), which is meant to be used by JavaScript and has additional cruft.
Pull request: https://github.com/WebKit/WebKit/pull/11181
Committed 261359@main (9556da2412e5): <https://commits.webkit.org/261359@main> Reviewed commits have been landed. Closing PR #11181 and removing active labels.
<rdar://problem/106406779>