pub(crate) trait NodeExt<'dom> {
Show 15 methods
// Required methods
fn as_image(&self) -> Option<(Option<Image>, PhysicalSize<f64>)>;
fn as_canvas(&self) -> Option<(CanvasInfo, PhysicalSize<f64>)>;
fn as_iframe(&self) -> Option<(PipelineId, BrowsingContextId)>;
fn as_video(&self) -> Option<(Option<ImageKey>, Option<PhysicalSize<f64>>)>;
fn as_svg(&self) -> Option<SVGElementData>;
fn as_typeless_object_with_data_attribute(&self) -> Option<String>;
fn ensure_inner_layout_data(&self) -> AtomicRefMut<'dom, InnerDOMLayoutData>;
fn inner_layout_data(&self) -> Option<AtomicRef<'dom, InnerDOMLayoutData>>;
fn box_slot(&self) -> BoxSlot<'dom>;
fn unset_all_boxes(&self);
fn unset_all_pseudo_boxes(&self);
fn fragments_for_pseudo(
&self,
pseudo_element: Option<PseudoElement>,
) -> Vec<Fragment>;
fn clear_fragment_layout_cache(&self);
fn repair_style(&self, context: &SharedStyleContext<'_>);
fn take_restyle_damage(&self) -> LayoutDamage;
}
Required Methods§
Sourcefn as_image(&self) -> Option<(Option<Image>, PhysicalSize<f64>)>
fn as_image(&self) -> Option<(Option<Image>, PhysicalSize<f64>)>
Returns the image if it’s loaded, and its size in image pixels
adjusted for image_density
.
fn as_canvas(&self) -> Option<(CanvasInfo, PhysicalSize<f64>)>
fn as_iframe(&self) -> Option<(PipelineId, BrowsingContextId)>
fn as_video(&self) -> Option<(Option<ImageKey>, Option<PhysicalSize<f64>>)>
fn as_svg(&self) -> Option<SVGElementData>
fn as_typeless_object_with_data_attribute(&self) -> Option<String>
fn ensure_inner_layout_data(&self) -> AtomicRefMut<'dom, InnerDOMLayoutData>
fn inner_layout_data(&self) -> Option<AtomicRef<'dom, InnerDOMLayoutData>>
fn box_slot(&self) -> BoxSlot<'dom>
Sourcefn unset_all_boxes(&self)
fn unset_all_boxes(&self)
Remove boxes for the element itself, and all of its pseudo-element boxes.
Sourcefn unset_all_pseudo_boxes(&self)
fn unset_all_pseudo_boxes(&self)
Remove all pseudo-element boxes for this element.