Files
sousa-gecko/servo/components/style/sharing
Oriol Brufau 4d46b7e2cb Bug 2051667 - Share ElementContext logic with Servo. r=firefox-style-system-reviewers,emilio
Except for `get_attr()`, all methods have a definition that just needs
`TElement`, nothing else is Gecko-specific.

So add a `get_attr()` into `TElement` with different definitions for
Gecko and Servo, and also add `get_tree_counting_result()` with a shared
default implementation.

Then the implementation of `ElementContext` for objects that also
implement `TElement` can just redirect to `TElement`.

Differential Revision: https://phabricator.services.mozilla.com/D309633
2026-06-30 20:24:41 +00:00
..
…
…