aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/stylo/size_of.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/stylo/size_of.rs b/tests/unit/stylo/size_of.rs
index 72acb2c2d5f..d863cb816a8 100644
--- a/tests/unit/stylo/size_of.rs
+++ b/tests/unit/stylo/size_of.rs
@@ -10,7 +10,7 @@ use style::applicable_declarations::ApplicableDeclarationBlock;
use style::data::{ComputedStyle, ElementData, ElementStyles};
use style::gecko::selector_parser as real;
use style::properties::ComputedValues;
-use style::rule_tree::StrongRuleNode;
+use style::rule_tree::{RuleNode, StrongRuleNode};
#[test]
fn size_of_selectors_dummy_types() {
@@ -39,6 +39,10 @@ size_of_test!(test_size_of_property_declaration, style::properties::PropertyDecl
size_of_test!(test_size_of_application_declaration_block, ApplicableDeclarationBlock, 24);
+// FIXME(bholley): This can shrink with a little bit of work.
+// See https://github.com/servo/servo/issues/17280
+size_of_test!(test_size_of_rule_node, RuleNode, 96);
+
// This is huge, but we allocate it on the stack and then never move it,
// we only pass `&mut SourcePropertyDeclaration` references around.
size_of_test!(test_size_of_parsed_declaration, style::properties::SourcePropertyDeclaration, 704);