Remove Option wrapper from RuleNode's StyleSource to save one word, add

a None variant to StyleSource as an indicator for a lack of style
source, and refactor all uses with this new form
This commit is contained in:
Brian Lewis 2017-06-14 11:10:34 +02:00
parent e41b7d06b4
commit 0fe381d774
5 changed files with 48 additions and 32 deletions

View file

@ -42,7 +42,7 @@ size_of_test!(test_size_of_application_declaration_block, ApplicableDeclarationB
// 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, 88);
size_of_test!(test_size_of_rule_node, RuleNode, 80);
// This is huge, but we allocate it on the stack and then never move it,
// we only pass `&mut SourcePropertyDeclaration` references around.