mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cloning DeclarationBlock
is cheap, the declarations are in an Arc
.
This commit is contained in:
parent
9ce519ba21
commit
733e87eb2c
1 changed files with 0 additions and 1 deletions
|
@ -175,7 +175,6 @@ impl SelectorMap {
|
|||
shareable: &mut bool) {
|
||||
for rule in rules.iter() {
|
||||
if matches_compound_selector(&*rule.selector, node, shareable) {
|
||||
// TODO(pradeep): Is the cloning inefficient?
|
||||
matching_rules.vec_push(rule.declarations.clone());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue