mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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) {
|
shareable: &mut bool) {
|
||||||
for rule in rules.iter() {
|
for rule in rules.iter() {
|
||||||
if matches_compound_selector(&*rule.selector, node, shareable) {
|
if matches_compound_selector(&*rule.selector, node, shareable) {
|
||||||
// TODO(pradeep): Is the cloning inefficient?
|
|
||||||
matching_rules.vec_push(rule.declarations.clone());
|
matching_rules.vec_push(rule.declarations.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue