mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
Use even fewer bits for source order and shrink ApplicableDeclarationsBlock by another word.
MozReview-Commit-ID: 7B1i1g0HLTj
This commit is contained in:
parent
3afab1400a
commit
0caad2ffdc
4 changed files with 96 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue