Use even fewer bits for source order and shrink ApplicableDeclarationsBlock by another word.

MozReview-Commit-ID: 7B1i1g0HLTj
This commit is contained in:
Bobby Holley 2017-06-10 13:54:13 -07:00
parent 3afab1400a
commit 0caad2ffdc
4 changed files with 96 additions and 18 deletions

View file

@ -163,7 +163,7 @@ impl SelectorMap<Rule> {
// Sort only the rules we just added.
sort_by_key(&mut matching_rules_list[init_len..],
|block| (block.specificity, block.source_order));
|block| (block.specificity, block.source_order()));
}
/// Check whether we have rules for the given id
@ -190,7 +190,7 @@ impl SelectorMap<Rule> {
}
sort_by_key(&mut rules_list,
|block| (block.specificity, block.source_order));
|block| (block.specificity, block.source_order()));
rules_list
}