diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-08-12 15:04:19 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-08-16 08:31:23 +0100 |
commit | 733e87eb2cec6c7f9c209bf52c66d0aa8acf4b0a (patch) | |
tree | 7aa4161e2a1fea6451edb9142388a9156c64737e /src | |
parent | 9ce519ba21d9b6a37df8c6de8cb8c935448211c4 (diff) | |
download | servo-733e87eb2cec6c7f9c209bf52c66d0aa8acf4b0a.tar.gz servo-733e87eb2cec6c7f9c209bf52c66d0aa8acf4b0a.zip |
Cloning `DeclarationBlock` is cheap, the declarations are in an `Arc`.
Diffstat (limited to 'src')
-rw-r--r-- | src/components/style/selector_matching.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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()); } } |