mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add a size_of test for RuleNode.
MozReview-Commit-ID: Id6iedlK5tg
This commit is contained in:
parent
a98fff1af8
commit
2d412d4e3a
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue