mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix typo for PresentationalHintsSynthesizer
This commit is contained in:
parent
d5efed6c6a
commit
dd5f73750c
5 changed files with 13 additions and 13 deletions
|
@ -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>;
|
||||
|
||||
|
|
|
@ -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>,
|
||||
{
|
||||
|
|
|
@ -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),
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue