From 733e87eb2cec6c7f9c209bf52c66d0aa8acf4b0a Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 12 Aug 2014 15:04:19 +0100 Subject: [PATCH] Cloning `DeclarationBlock` is cheap, the declarations are in an `Arc`. --- src/components/style/selector_matching.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/style/selector_matching.rs b/src/components/style/selector_matching.rs index 843a5ed10d7..d11525326b9 100644 --- a/src/components/style/selector_matching.rs +++ b/src/components/style/selector_matching.rs @@ -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()); } }