Drive-by: Add size_of test for ComputedValues.

MozReview-Commit-ID: Ks4km7R9VGr
This commit is contained in:
Bobby Holley 2017-09-10 11:33:51 -07:00
parent 7f4cb1861b
commit 6623b1f80d

View file

@ -31,6 +31,9 @@ fn size_of_selectors_dummy_types() {
// selectors (with the inline hashes) with as few cache misses as possible.
size_of_test!(test_size_of_rule, style::stylist::Rule, 32);
// Large pages generate tens of thousands of ComputedValues.
size_of_test!(test_size_of_cv, ComputedValues, 272);
size_of_test!(test_size_of_option_arc_cv, Option<Arc<ComputedValues>>, 8);
size_of_test!(test_size_of_option_rule_node, Option<StrongRuleNode>, 8);