diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2023-08-14 22:05:25 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-08-16 17:46:41 +0200 |
commit | f48b95e2e3879d38314ab84999f0c17055a660d5 (patch) | |
tree | da3f19b1d6645b57caf2694daf220000db14c6de /components/style/gecko/selector_parser.rs | |
parent | 50d31686beb7292e9c265f3c375254c76a2c87d7 (diff) | |
download | servo-f48b95e2e3879d38314ab84999f0c17055a660d5.tar.gz servo-f48b95e2e3879d38314ab84999f0c17055a660d5.zip |
style: Move size of tests to compile-time tests in the style crate
Same reasoning as the previous commit.
Differential Revision: https://phabricator.services.mozilla.com/D146104
Diffstat (limited to 'components/style/gecko/selector_parser.rs')
-rw-r--r-- | components/style/gecko/selector_parser.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index 336df501325..7cfb01e2794 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -445,3 +445,9 @@ unsafe impl HasFFI for SelectorList<SelectorImpl> { } unsafe impl HasSimpleFFI for SelectorList<SelectorImpl> {} unsafe impl HasBoxFFI for SelectorList<SelectorImpl> {} + +// Selector and component sizes are important for matching performance. +size_of_test!(selectors::parser::Selector<SelectorImpl>, 8); +size_of_test!(selectors::parser::Component<SelectorImpl>, 24); +size_of_test!(PseudoElement, 16); +size_of_test!(NonTSPseudoClass, 16); |