diff options
author | Ting-Yu Lin <tlin@mozilla.com> | 2017-05-09 10:49:30 -0700 |
---|---|---|
committer | Ting-Yu Lin <tlin@mozilla.com> | 2017-05-10 11:28:26 -0700 |
commit | dd5f73750ca0b0a00bc36af2e99af6be8d06787e (patch) | |
tree | 48dc8ac90a4fd73c650d95150f6fb5a52942d2bd | |
parent | d5efed6c6a3e05f09300a3ed36d0e1254fcb407c (diff) | |
download | servo-dd5f73750ca0b0a00bc36af2e99af6be8d06787e.tar.gz servo-dd5f73750ca0b0a00bc36af2e99af6be8d06787e.zip |
Fix typo for PresentationalHintsSynthesizer
-rw-r--r-- | components/script/layout_wrapper.rs | 6 | ||||
-rw-r--r-- | components/script_layout_interface/wrapper_traits.rs | 4 | ||||
-rw-r--r-- | components/style/dom.rs | 4 | ||||
-rw-r--r-- | components/style/gecko/wrapper.rs | 4 | ||||
-rw-r--r-- | components/style/stylist.rs | 8 |
5 files changed, 13 insertions, 13 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 46e5921e3ac..2f36aa55f81 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -65,7 +65,7 @@ use style::computed_values::display; use style::context::{QuirksMode, SharedStyleContext}; use style::data::ElementData; use style::dom::{DescendantsBit, DirtyDescendants, LayoutIterator, NodeInfo, OpaqueNode}; -use style::dom::{PresentationalHintsSynthetizer, TElement, TNode, UnsafeNode}; +use style::dom::{PresentationalHintsSynthesizer, TElement, TNode, UnsafeNode}; use style::element_state::*; use style::font_metrics::ServoMetricsProvider; use style::properties::{ComputedValues, PropertyDeclarationBlock}; @@ -362,7 +362,7 @@ impl<'le> fmt::Debug for ServoLayoutElement<'le> { } } -impl<'le> PresentationalHintsSynthetizer for ServoLayoutElement<'le> { +impl<'le> PresentationalHintsSynthesizer for ServoLayoutElement<'le> { fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, hints: &mut V) where V: Push<ApplicableDeclarationBlock> { @@ -1162,7 +1162,7 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> { } } -impl<'le> PresentationalHintsSynthetizer for ServoThreadSafeLayoutElement<'le> { +impl<'le> PresentationalHintsSynthesizer for ServoThreadSafeLayoutElement<'le> { fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, _hints: &mut V) where V: Push<ApplicableDeclarationBlock> {} } diff --git a/components/script_layout_interface/wrapper_traits.rs b/components/script_layout_interface/wrapper_traits.rs index e39d27614c5..52caf77805b 100644 --- a/components/script_layout_interface/wrapper_traits.rs +++ b/components/script_layout_interface/wrapper_traits.rs @@ -18,7 +18,7 @@ use std::fmt::Debug; use style::computed_values::display; use style::context::SharedStyleContext; use style::data::ElementData; -use style::dom::{LayoutIterator, NodeInfo, PresentationalHintsSynthetizer, TNode}; +use style::dom::{LayoutIterator, NodeInfo, PresentationalHintsSynthesizer, TNode}; use style::dom::OpaqueNode; use style::font_metrics::ServoMetricsProvider; use style::properties::{CascadeFlags, ServoComputedValues}; @@ -306,7 +306,7 @@ pub trait DangerousThreadSafeLayoutNode: ThreadSafeLayoutNode { pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug + ::selectors::Element<Impl=SelectorImpl> + GetLayoutData + - PresentationalHintsSynthetizer { + PresentationalHintsSynthesizer { type ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode<ConcreteThreadSafeLayoutElement = Self>; fn as_node(&self) -> Self::ConcreteThreadSafeLayoutNode; diff --git a/components/style/dom.rs b/components/style/dom.rs index 7a4fe5d1003..1eec6a8e3c0 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -267,7 +267,7 @@ pub unsafe fn raw_note_descendants<E, B>(element: E) -> bool } /// A trait used to synthesize presentational hints for HTML element attributes. -pub trait PresentationalHintsSynthetizer { +pub trait PresentationalHintsSynthesizer { /// Generate the proper applicable declarations due to presentational hints, /// and insert them into `hints`. fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, hints: &mut V) @@ -290,7 +290,7 @@ impl AnimationRules { /// The element trait, the main abstraction the style crate acts over. pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone + - ElementExt + PresentationalHintsSynthetizer { + ElementExt + PresentationalHintsSynthesizer { /// The concrete node type. type ConcreteNode: TNode<ConcreteElement = Self>; diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 66ac6797b97..4703228a122 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -19,7 +19,7 @@ use atomic_refcell::AtomicRefCell; use context::{QuirksMode, SharedStyleContext, UpdateAnimationsTasks}; use data::ElementData; use dom::{self, AnimationRules, DescendantsBit, LayoutIterator, NodeInfo, TElement, TNode, UnsafeNode}; -use dom::{OpaqueNode, PresentationalHintsSynthetizer}; +use dom::{OpaqueNode, PresentationalHintsSynthesizer}; use element_state::ElementState; use error_reporting::RustLogReporter; use font_metrics::{FontMetrics, FontMetricsProvider, FontMetricsQueryResult}; @@ -907,7 +907,7 @@ impl<'le> Hash for GeckoElement<'le> { } } -impl<'le> PresentationalHintsSynthetizer for GeckoElement<'le> { +impl<'le> PresentationalHintsSynthesizer for GeckoElement<'le> { fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, hints: &mut V) where V: Push<ApplicableDeclarationBlock>, { diff --git a/components/style/stylist.rs b/components/style/stylist.rs index 28d05589bbf..690e25f33bb 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -10,7 +10,7 @@ use {Atom, LocalName}; use bit_vec::BitVec; use context::QuirksMode; use data::ComputedStyle; -use dom::{AnimationRules, PresentationalHintsSynthetizer, TElement}; +use dom::{AnimationRules, PresentationalHintsSynthesizer, TElement}; use error_reporting::RustLogReporter; use font_metrics::FontMetricsProvider; use keyframes::KeyframesAnimation; @@ -490,7 +490,7 @@ impl Stylist { -> Option<ComputedStyle> where E: TElement + fmt::Debug + - PresentationalHintsSynthetizer + PresentationalHintsSynthesizer { let rule_node = match self.lazy_pseudo_rules(guards, element, pseudo) { Some(rule_node) => rule_node, @@ -525,7 +525,7 @@ impl Stylist { element: &E, pseudo: &PseudoElement) -> Option<StrongRuleNode> - where E: TElement + fmt::Debug + PresentationalHintsSynthetizer + where E: TElement + fmt::Debug + PresentationalHintsSynthesizer { debug_assert!(pseudo.is_lazy()); if self.pseudos_map.get(pseudo).is_none() { @@ -688,7 +688,7 @@ impl Stylist { -> StyleRelations where E: TElement + fmt::Debug + - PresentationalHintsSynthetizer, + PresentationalHintsSynthesizer, V: Push<ApplicableDeclarationBlock> + VecLike<ApplicableDeclarationBlock>, F: FnMut(&E, ElementSelectorFlags), { |