mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
auto merge of #1555 : pcwalton/servo/faster-attribute-lookup, r=larsbergstrom
table. 40% improvement in selector matching performance on the rainbow page. r? @larsbergstrom
This commit is contained in:
commit
bafb3e7e02
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ impl SelectorMap {
|
|||
hash: &HashMap<~str,~[Rule]>,
|
||||
key: &str,
|
||||
matching_rules: &mut ~[Rule]) {
|
||||
match hash.find(&key.to_str()) {
|
||||
match hash.find_equiv(&key) {
|
||||
Some(rules) => {
|
||||
SelectorMap::get_matching_rules(node, *rules, matching_rules)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue