This way we can use the same implementation for GTK3 and GTK4.
Pull request: https://github.com/WebKit/WebKit/pull/20011
Committed 270381@main (1dd50082039b): <https://commits.webkit.org/270381@main> Reviewed commits have been landed. Closing PR #20011 and removing active labels.