Trait LayoutElementHelpers

Source
pub(crate) trait LayoutElementHelpers<'dom> {
Show 23 methods // Required methods fn attrs(self) -> &'dom [LayoutDom<'dom, Attr>]; fn has_class_or_part_for_layout( self, name: &AtomIdent, attr_name: &LocalName, case_sensitivity: CaseSensitivity, ) -> bool; fn get_classes_for_layout(self) -> Option<&'dom [Atom]>; fn get_parts_for_layout(self) -> Option<&'dom [Atom]>; fn synthesize_presentational_hints_for_legacy_attributes<V>( self, hints: &mut V, ) where V: Push<ApplicableDeclarationBlock>; fn get_span(self) -> Option<u32>; fn get_colspan(self) -> Option<u32>; fn get_rowspan(self) -> Option<u32>; fn is_html_element(&self) -> bool; fn id_attribute(self) -> *const Option<Atom>; fn style_attribute( self, ) -> *const Option<Arc<Locked<PropertyDeclarationBlock>>>; fn local_name(self) -> &'dom LocalName; fn namespace(self) -> &'dom Namespace; fn get_lang_attr_val_for_layout(self) -> Option<&'dom str>; fn get_lang_for_layout(self) -> String; fn get_state_for_layout(self) -> ElementState; fn insert_selector_flags(self, flags: ElementSelectorFlags); fn get_selector_flags(self) -> ElementSelectorFlags; fn get_shadow_root_for_layout(self) -> Option<LayoutDom<'dom, ShadowRoot>>; fn get_attr_for_layout( self, namespace: &Namespace, name: &LocalName, ) -> Option<&'dom AttrValue>; fn get_attr_val_for_layout( self, namespace: &Namespace, name: &LocalName, ) -> Option<&'dom str>; fn get_attr_vals_for_layout(self, name: &LocalName) -> Vec<&'dom AttrValue>; fn each_custom_state<F>(self, callback: F) where F: FnMut(&AtomIdent);
}

Required Methods§

Source

fn attrs(self) -> &'dom [LayoutDom<'dom, Attr>]

Source

fn has_class_or_part_for_layout( self, name: &AtomIdent, attr_name: &LocalName, case_sensitivity: CaseSensitivity, ) -> bool

Source

fn get_classes_for_layout(self) -> Option<&'dom [Atom]>

Source

fn get_parts_for_layout(self) -> Option<&'dom [Atom]>

Source

fn synthesize_presentational_hints_for_legacy_attributes<V>(self, hints: &mut V)

Source

fn get_span(self) -> Option<u32>

Source

fn get_colspan(self) -> Option<u32>

Source

fn get_rowspan(self) -> Option<u32>

Source

fn is_html_element(&self) -> bool

Source

fn id_attribute(self) -> *const Option<Atom>

Source

fn style_attribute(self) -> *const Option<Arc<Locked<PropertyDeclarationBlock>>>

Source

fn local_name(self) -> &'dom LocalName

Source

fn namespace(self) -> &'dom Namespace

Source

fn get_lang_attr_val_for_layout(self) -> Option<&'dom str>

Source

fn get_lang_for_layout(self) -> String

Source

fn get_state_for_layout(self) -> ElementState

Source

fn insert_selector_flags(self, flags: ElementSelectorFlags)

Source

fn get_selector_flags(self) -> ElementSelectorFlags

Source

fn get_shadow_root_for_layout(self) -> Option<LayoutDom<'dom, ShadowRoot>>

The shadow root this element is a host of.

Source

fn get_attr_for_layout( self, namespace: &Namespace, name: &LocalName, ) -> Option<&'dom AttrValue>

Source

fn get_attr_val_for_layout( self, namespace: &Namespace, name: &LocalName, ) -> Option<&'dom str>

Source

fn get_attr_vals_for_layout(self, name: &LocalName) -> Vec<&'dom AttrValue>

Source

fn each_custom_state<F>(self, callback: F)
where F: FnMut(&AtomIdent),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element>