diff options
Diffstat (limited to 'components/style/selector_matching.rs')
-rw-r--r-- | components/style/selector_matching.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs index 35a38d5ed14..74718d4b69b 100644 --- a/components/style/selector_matching.rs +++ b/components/style/selector_matching.rs @@ -18,6 +18,7 @@ use selectors::bloom::BloomFilter; use selectors::matching::DeclarationBlock as GenericDeclarationBlock; use selectors::matching::{Rule, SelectorMap}; use selectors::parser::SelectorImpl; +use sink::Push; use smallvec::VecLike; use std::collections::HashMap; use std::hash::BuildHasherDefault; @@ -389,7 +390,7 @@ impl<Impl: SelectorImplExt> Stylist<Impl> { applicable_declarations: &mut V) -> bool where E: Element<Impl=Impl> + PresentationalHintsSynthetizer, - V: VecLike<DeclarationBlock> { + V: Push<DeclarationBlock> + VecLike<DeclarationBlock> { assert!(!self.is_device_dirty); assert!(style_attribute.is_none() || pseudo_element.is_none(), "Style attributes do not apply to pseudo-elements"); @@ -430,7 +431,8 @@ impl<Impl: SelectorImplExt> Stylist<Impl> { // Step 4: Normal style attributes. style_attribute.map(|sa| { shareable = false; - applicable_declarations.push( + Push::push( + applicable_declarations, GenericDeclarationBlock::from_declarations(sa.normal.clone())) }); @@ -443,7 +445,8 @@ impl<Impl: SelectorImplExt> Stylist<Impl> { // Step 6: `!important` style attributes. style_attribute.map(|sa| { shareable = false; - applicable_declarations.push( + Push::push( + applicable_declarations, GenericDeclarationBlock::from_declarations(sa.important.clone())) }); |