Bug 1734474 - Refactor spatial tree invertible calculations r=gfx-reviewers,kvark
Bug 1734474 - Refactor spatial tree invertible calculations r=gfx-reviewers,kvark

With this change, we no longer have mutable state stored inside
the `ReferenceFrameInfo` struct, which will be important as we
introduce the follow up patches to retain the spatial tree
between display lists.

Differential Revision: https://phabricator.services.mozilla.com/D127726

[ghsync] From https://hg.mozilla.org/mozilla-central/rev/d86301f5955d057926a0e02b071420e1d8ac7b1a

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender