Cloning DeclarationBlock is cheap, the declarations are in an Arc.

This commit is contained in:
Simon Sapin 2014-08-12 15:04:19 +01:00
parent 9ce519ba21
commit 733e87eb2c

View file

@ -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());
}
}