mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
style: Make Element::id not clone the attribute.
This commit is contained in:
parent
98c9292ecb
commit
f2efd04a5d
10 changed files with 46 additions and 37 deletions
|
@ -155,7 +155,7 @@ where
|
|||
let stylist = &shared_context.stylist;
|
||||
|
||||
let may_have_rules_for_element = match element_id {
|
||||
Some(ref id) => stylist.may_have_rules_for_id(id, element),
|
||||
Some(id) => stylist.may_have_rules_for_id(id, element),
|
||||
None => false
|
||||
};
|
||||
|
||||
|
@ -164,7 +164,7 @@ where
|
|||
}
|
||||
|
||||
match candidate_id {
|
||||
Some(ref id) => stylist.may_have_rules_for_id(id, candidate),
|
||||
Some(id) => stylist.may_have_rules_for_id(id, candidate),
|
||||
None => false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue