Trait script::dom::element::LayoutElementHelpers
source · pub trait LayoutElementHelpers<'dom> {
Show 20 methods
// Required methods
fn attrs(self) -> &'dom [LayoutDom<'dom, Attr>];
fn has_class_for_layout(
self,
name: &AtomIdent,
case_sensitivity: CaseSensitivity,
) -> bool;
fn get_classes_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_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>;
}
Required Methods§
fn attrs(self) -> &'dom [LayoutDom<'dom, Attr>]
fn has_class_for_layout( self, name: &AtomIdent, case_sensitivity: CaseSensitivity, ) -> bool
fn get_classes_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_for_layout(self) -> String
fn get_state_for_layout(self) -> ElementState
fn insert_selector_flags(self, flags: ElementSelectorFlags)
fn get_selector_flags(self) -> ElementSelectorFlags
sourcefn get_shadow_root_for_layout(self) -> Option<LayoutDom<'dom, ShadowRoot>>
fn get_shadow_root_for_layout(self) -> Option<LayoutDom<'dom, ShadowRoot>>
The shadow root this element is a host of.
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>
Object Safety§
This trait is not object safe.