diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-07-04 16:30:40 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-07-04 16:48:14 +0200 |
commit | a5b524d5590f84428c61895b418eda7024c8e600 (patch) | |
tree | dfec847eec78e5b61dcfde29a57a1869c7a57ae9 /components/script/layout_wrapper.rs | |
parent | 51ff916e09ff844eb2a1aa1fe2df9ef4b45af649 (diff) | |
download | servo-a5b524d5590f84428c61895b418eda7024c8e600.tar.gz servo-a5b524d5590f84428c61895b418eda7024c8e600.zip |
Move util::vec::ForgetfulSink to style::sink and simplify it
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 681fdab9c46..779c37a5d52 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -49,7 +49,6 @@ use script_layout_interface::{HTMLCanvasData, LayoutNodeType, TrustedNodeAddress use script_layout_interface::{OpaqueStyleAndLayoutData, PartialStyleAndLayoutData}; use selectors::matching::{DeclarationBlock, ElementFlags}; use selectors::parser::{AttrSelector, NamespaceConstraint}; -use smallvec::VecLike; use std::marker::PhantomData; use std::mem::{transmute, transmute_copy}; use string_cache::{Atom, BorrowedAtom, BorrowedNamespace, Namespace}; @@ -63,6 +62,7 @@ use style::refcell::{Ref, RefCell, RefMut}; use style::restyle_hints::ElementSnapshot; use style::selector_impl::{NonTSPseudoClass, ServoSelectorImpl}; use style::servo::{PrivateStyleData, SharedStyleContext}; +use style::sink::Push; use url::Url; use util::str::is_whitespace; @@ -360,7 +360,7 @@ pub struct ServoLayoutElement<'le> { impl<'le> PresentationalHintsSynthetizer for ServoLayoutElement<'le> { fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, hints: &mut V) - where V: VecLike<DeclarationBlock<Vec<PropertyDeclaration>>> + where V: Push<DeclarationBlock<Vec<PropertyDeclaration>>> { unsafe { self.element.synthesize_presentational_hints_for_legacy_attributes(hints); @@ -995,5 +995,5 @@ impl <'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> { impl<'le> PresentationalHintsSynthetizer for ServoThreadSafeLayoutElement<'le> { fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, _hints: &mut V) - where V: VecLike<DeclarationBlock<Vec<PropertyDeclaration>>> {} + where V: Push<DeclarationBlock<Vec<PropertyDeclaration>>> {} } |