pub struct StyleBuilder<'a> {Show 36 fields
pub device: &'a Device,
pub stylist: Option<&'a Stylist>,
inherited_style: &'a ComputedValues,
reset_style: &'a ComputedValues,
pub rules: Option<StrongRuleNode>,
pub custom_properties: ComputedCustomProperties,
pub invalid_non_custom_properties: LonghandIdSet,
pub pseudo: Option<&'a PseudoElement>,
modified_reset: bool,
pub is_root_element: bool,
pub writing_mode: WritingMode,
pub color_scheme: ColorSchemeFlags,
pub effective_zoom: Zoom,
pub effective_zoom_for_inheritance: Zoom,
pub flags: Cell<ComputedValueFlags>,
pub visited_style: Option<Arc<ComputedValues>>,
background: StyleStructRef<'a, Background>,
border: StyleStructRef<'a, Border>,
box_: StyleStructRef<'a, Box>,
column: StyleStructRef<'a, Column>,
counters: StyleStructRef<'a, Counters>,
effects: StyleStructRef<'a, Effects>,
font: StyleStructRef<'a, Font>,
inherited_box: StyleStructRef<'a, InheritedBox>,
inherited_table: StyleStructRef<'a, InheritedTable>,
inherited_text: StyleStructRef<'a, InheritedText>,
inherited_ui: StyleStructRef<'a, InheritedUI>,
list: StyleStructRef<'a, List>,
margin: StyleStructRef<'a, Margin>,
outline: StyleStructRef<'a, Outline>,
padding: StyleStructRef<'a, Padding>,
position: StyleStructRef<'a, Position>,
svg: StyleStructRef<'a, SVG>,
table: StyleStructRef<'a, Table>,
text: StyleStructRef<'a, Text>,
ui: StyleStructRef<'a, UI>,
}Expand description
A type used to compute a struct with minimal overhead.
This allows holding references to the parent/default computed values without actually cloning them, until we either build the style, or mutate the inherited value.
Fields§
§device: &'a DeviceThe device we’re using to compute style.
This provides access to viewport unit ratios, etc.
stylist: Option<&'a Stylist>The stylist we’re using to compute style except for media queries. device is used in media queries instead.
inherited_style: &'a ComputedValuesThe style we’re inheriting from.
This is effectively
parent_style.unwrap_or(device.default_computed_values()).
reset_style: &'a ComputedValuesThe style we’re getting reset structs from.
rules: Option<StrongRuleNode>The rule node representing the ordered list of rules matched for this node.
custom_properties: ComputedCustomPropertiesThe computed custom properties.
invalid_non_custom_properties: LonghandIdSetNon-custom properties that are considered invalid at compute time
due to cyclic dependencies with custom properties.
e.g. --foo: 1em; font-size: var(--foo) where --foo is registered.
pseudo: Option<&'a PseudoElement>The pseudo-element this style will represent.
modified_reset: boolWhether we have mutated any reset structs since the the last time
clear_modified_reset was called. This is used to tell whether the
StyleAdjuster did any work.
is_root_element: boolWhether this is the style for the root element.
writing_mode: WritingModeThe writing mode flags.
TODO(emilio): Make private.
color_scheme: ColorSchemeFlagsThe color-scheme bits. Needed because they may otherwise be different between visited and unvisited colors.
effective_zoom: ZoomThe effective zoom.
effective_zoom_for_inheritance: ZoomThe effective zoom for inheritance (the “specified” zoom on this element).
flags: Cell<ComputedValueFlags>Flags for the computed value.
visited_style: Option<Arc<ComputedValues>>The element’s style if visited, only computed if there’s a relevant link for this element. A element’s “relevant link” is the element being matched if it is a link or the nearest ancestor link.
background: StyleStructRef<'a, Background>§border: StyleStructRef<'a, Border>§box_: StyleStructRef<'a, Box>§column: StyleStructRef<'a, Column>§counters: StyleStructRef<'a, Counters>§effects: StyleStructRef<'a, Effects>§font: StyleStructRef<'a, Font>§inherited_box: StyleStructRef<'a, InheritedBox>§inherited_table: StyleStructRef<'a, InheritedTable>§inherited_text: StyleStructRef<'a, InheritedText>§inherited_ui: StyleStructRef<'a, InheritedUI>§list: StyleStructRef<'a, List>§margin: StyleStructRef<'a, Margin>§outline: StyleStructRef<'a, Outline>§padding: StyleStructRef<'a, Padding>§position: StyleStructRef<'a, Position>§svg: StyleStructRef<'a, SVG>§table: StyleStructRef<'a, Table>§text: StyleStructRef<'a, Text>§ui: StyleStructRef<'a, UI>Implementations§
Source§impl<'a> StyleBuilder<'a>
impl<'a> StyleBuilder<'a>
Sourcepub fn new(
device: &'a Device,
stylist: Option<&'a Stylist>,
parent_style: Option<&'a ComputedValues>,
pseudo: Option<&'a PseudoElement>,
rules: Option<StrongRuleNode>,
is_root_element: bool,
) -> Self
pub fn new( device: &'a Device, stylist: Option<&'a Stylist>, parent_style: Option<&'a ComputedValues>, pseudo: Option<&'a PseudoElement>, rules: Option<StrongRuleNode>, is_root_element: bool, ) -> Self
Trivially construct a StyleBuilder.
Sourcepub fn for_animation(
device: &'a Device,
stylist: Option<&'a Stylist>,
style_to_derive_from: &'a ComputedValues,
parent_style: Option<&'a ComputedValues>,
) -> Self
pub fn for_animation( device: &'a Device, stylist: Option<&'a Stylist>, style_to_derive_from: &'a ComputedValues, parent_style: Option<&'a ComputedValues>, ) -> Self
NOTE(emilio): This is done so we can compute relative units with respect to the parent style, but all the early properties / writing-mode / etc are already set to the right ones on the kid.
Do not actually call this to construct a style, this should mostly be used for animations.
Sourcepub fn copy_reset_from(&mut self, style: &'a ComputedValues)
pub fn copy_reset_from(&mut self, style: &'a ComputedValues)
Copy the reset properties from style.
Sourcepub fn inherit_align_content(&mut self)
pub fn inherit_align_content(&mut self)
Inherit align_content from our parent style.
Sourcepub fn set_align_content(&mut self, value: T)
pub fn set_align_content(&mut self, value: T)
Set the align_content to the computed value value.
Sourcepub fn inherit_align_items(&mut self)
pub fn inherit_align_items(&mut self)
Inherit align_items from our parent style.
Sourcepub fn set_align_items(&mut self, value: T)
pub fn set_align_items(&mut self, value: T)
Set the align_items to the computed value value.
Sourcepub fn inherit_align_self(&mut self)
pub fn inherit_align_self(&mut self)
Inherit align_self from our parent style.
Sourcepub fn set_align_self(&mut self, value: T)
pub fn set_align_self(&mut self, value: T)
Set the align_self to the computed value value.
Sourcepub fn inherit_aspect_ratio(&mut self)
pub fn inherit_aspect_ratio(&mut self)
Inherit aspect_ratio from our parent style.
Sourcepub fn set_aspect_ratio(&mut self, value: T)
pub fn set_aspect_ratio(&mut self, value: T)
Set the aspect_ratio to the computed value value.
Sourcepub fn inherit_backface_visibility(&mut self)
pub fn inherit_backface_visibility(&mut self)
Inherit backface_visibility from our parent style.
Sourcepub fn set_backface_visibility(&mut self, value: T)
pub fn set_backface_visibility(&mut self, value: T)
Set the backface_visibility to the computed value value.
Sourcepub fn inherit_baseline_source(&mut self)
pub fn inherit_baseline_source(&mut self)
Inherit baseline_source from our parent style.
Sourcepub fn set_baseline_source(&mut self, value: T)
pub fn set_baseline_source(&mut self, value: T)
Set the baseline_source to the computed value value.
Sourcepub fn reset_border_collapse(&mut self)
pub fn reset_border_collapse(&mut self)
Reset border_collapse to the initial value.
Sourcepub fn set_border_collapse(&mut self, value: T)
pub fn set_border_collapse(&mut self, value: T)
Set the border_collapse to the computed value value.
Sourcepub fn inherit_border_image_repeat(&mut self)
pub fn inherit_border_image_repeat(&mut self)
Inherit border_image_repeat from our parent style.
Sourcepub fn set_border_image_repeat(&mut self, value: T)
pub fn set_border_image_repeat(&mut self, value: T)
Set the border_image_repeat to the computed value value.
Sourcepub fn inherit_box_sizing(&mut self)
pub fn inherit_box_sizing(&mut self)
Inherit box_sizing from our parent style.
Sourcepub fn set_box_sizing(&mut self, value: T)
pub fn set_box_sizing(&mut self, value: T)
Set the box_sizing to the computed value value.
Sourcepub fn reset_caption_side(&mut self)
pub fn reset_caption_side(&mut self)
Reset caption_side to the initial value.
Sourcepub fn set_caption_side(&mut self, value: T)
pub fn set_caption_side(&mut self, value: T)
Set the caption_side to the computed value value.
Sourcepub fn inherit_clear(&mut self)
pub fn inherit_clear(&mut self)
Inherit clear from our parent style.
Sourcepub fn inherit_column_count(&mut self)
pub fn inherit_column_count(&mut self)
Inherit column_count from our parent style.
Sourcepub fn set_column_count(&mut self, value: T)
pub fn set_column_count(&mut self, value: T)
Set the column_count to the computed value value.
Sourcepub fn inherit_column_span(&mut self)
pub fn inherit_column_span(&mut self)
Inherit column_span from our parent style.
Sourcepub fn set_column_span(&mut self, value: T)
pub fn set_column_span(&mut self, value: T)
Set the column_span to the computed value value.
Sourcepub fn inherit_contain(&mut self)
pub fn inherit_contain(&mut self)
Inherit contain from our parent style.
Sourcepub fn set_contain(&mut self, value: T)
pub fn set_contain(&mut self, value: T)
Set the contain to the computed value value.
Sourcepub fn inherit_container_type(&mut self)
pub fn inherit_container_type(&mut self)
Inherit container_type from our parent style.
Sourcepub fn set_container_type(&mut self, value: T)
pub fn set_container_type(&mut self, value: T)
Set the container_type to the computed value value.
Sourcepub fn reset_direction(&mut self)
pub fn reset_direction(&mut self)
Reset direction to the initial value.
Sourcepub fn set_direction(&mut self, value: T)
pub fn set_direction(&mut self, value: T)
Set the direction to the computed value value.
Sourcepub fn inherit_display(&mut self)
pub fn inherit_display(&mut self)
Inherit display from our parent style.
Sourcepub fn set_display(&mut self, value: T)
pub fn set_display(&mut self, value: T)
Set the display to the computed value value.
Sourcepub fn reset_empty_cells(&mut self)
pub fn reset_empty_cells(&mut self)
Reset empty_cells to the initial value.
Sourcepub fn set_empty_cells(&mut self, value: T)
pub fn set_empty_cells(&mut self, value: T)
Set the empty_cells to the computed value value.
Sourcepub fn inherit_flex_direction(&mut self)
pub fn inherit_flex_direction(&mut self)
Inherit flex_direction from our parent style.
Sourcepub fn set_flex_direction(&mut self, value: T)
pub fn set_flex_direction(&mut self, value: T)
Set the flex_direction to the computed value value.
Sourcepub fn inherit_flex_wrap(&mut self)
pub fn inherit_flex_wrap(&mut self)
Inherit flex_wrap from our parent style.
Sourcepub fn set_flex_wrap(&mut self, value: T)
pub fn set_flex_wrap(&mut self, value: T)
Set the flex_wrap to the computed value value.
Sourcepub fn inherit_float(&mut self)
pub fn inherit_float(&mut self)
Inherit float from our parent style.
Sourcepub fn reset_font_language_override(&mut self)
pub fn reset_font_language_override(&mut self)
Reset font_language_override to the initial value.
Sourcepub fn set_font_language_override(&mut self, value: T)
pub fn set_font_language_override(&mut self, value: T)
Set the font_language_override to the computed value value.
Sourcepub fn reset_font_stretch(&mut self)
pub fn reset_font_stretch(&mut self)
Reset font_stretch to the initial value.
Sourcepub fn set_font_stretch(&mut self, value: T)
pub fn set_font_stretch(&mut self, value: T)
Set the font_stretch to the computed value value.
Sourcepub fn reset_font_style(&mut self)
pub fn reset_font_style(&mut self)
Reset font_style to the initial value.
Sourcepub fn set_font_style(&mut self, value: T)
pub fn set_font_style(&mut self, value: T)
Set the font_style to the computed value value.
Sourcepub fn reset_font_synthesis_weight(&mut self)
pub fn reset_font_synthesis_weight(&mut self)
Reset font_synthesis_weight to the initial value.
Sourcepub fn set_font_synthesis_weight(&mut self, value: T)
pub fn set_font_synthesis_weight(&mut self, value: T)
Set the font_synthesis_weight to the computed value value.
Sourcepub fn reset_font_variant_caps(&mut self)
pub fn reset_font_variant_caps(&mut self)
Reset font_variant_caps to the initial value.
Sourcepub fn set_font_variant_caps(&mut self, value: T)
pub fn set_font_variant_caps(&mut self, value: T)
Set the font_variant_caps to the computed value value.
Sourcepub fn reset_font_weight(&mut self)
pub fn reset_font_weight(&mut self)
Reset font_weight to the initial value.
Sourcepub fn set_font_weight(&mut self, value: T)
pub fn set_font_weight(&mut self, value: T)
Set the font_weight to the computed value value.
Sourcepub fn inherit_grid_auto_flow(&mut self)
pub fn inherit_grid_auto_flow(&mut self)
Inherit grid_auto_flow from our parent style.
Sourcepub fn set_grid_auto_flow(&mut self, value: T)
pub fn set_grid_auto_flow(&mut self, value: T)
Set the grid_auto_flow to the computed value value.
Sourcepub fn reset_image_rendering(&mut self)
pub fn reset_image_rendering(&mut self)
Reset image_rendering to the initial value.
Sourcepub fn set_image_rendering(&mut self, value: T)
pub fn set_image_rendering(&mut self, value: T)
Set the image_rendering to the computed value value.
Sourcepub fn inherit_isolation(&mut self)
pub fn inherit_isolation(&mut self)
Inherit isolation from our parent style.
Sourcepub fn set_isolation(&mut self, value: T)
pub fn set_isolation(&mut self, value: T)
Set the isolation to the computed value value.
Sourcepub fn inherit_justify_content(&mut self)
pub fn inherit_justify_content(&mut self)
Inherit justify_content from our parent style.
Sourcepub fn set_justify_content(&mut self, value: T)
pub fn set_justify_content(&mut self, value: T)
Set the justify_content to the computed value value.
Sourcepub fn inherit_justify_items(&mut self)
pub fn inherit_justify_items(&mut self)
Inherit justify_items from our parent style.
Sourcepub fn set_justify_items(&mut self, value: T)
pub fn set_justify_items(&mut self, value: T)
Set the justify_items to the computed value value.
Sourcepub fn inherit_justify_self(&mut self)
pub fn inherit_justify_self(&mut self)
Inherit justify_self from our parent style.
Sourcepub fn set_justify_self(&mut self, value: T)
pub fn set_justify_self(&mut self, value: T)
Set the justify_self to the computed value value.
Sourcepub fn reset_list_style_position(&mut self)
pub fn reset_list_style_position(&mut self)
Reset list_style_position to the initial value.
Sourcepub fn set_list_style_position(&mut self, value: T)
pub fn set_list_style_position(&mut self, value: T)
Set the list_style_position to the computed value value.
Sourcepub fn reset_list_style_type(&mut self)
pub fn reset_list_style_type(&mut self)
Reset list_style_type to the initial value.
Sourcepub fn set_list_style_type(&mut self, value: T)
pub fn set_list_style_type(&mut self, value: T)
Set the list_style_type to the computed value value.
Sourcepub fn inherit_mix_blend_mode(&mut self)
pub fn inherit_mix_blend_mode(&mut self)
Inherit mix_blend_mode from our parent style.
Sourcepub fn set_mix_blend_mode(&mut self, value: T)
pub fn set_mix_blend_mode(&mut self, value: T)
Set the mix_blend_mode to the computed value value.
Sourcepub fn inherit_object_fit(&mut self)
pub fn inherit_object_fit(&mut self)
Inherit object_fit from our parent style.
Sourcepub fn set_object_fit(&mut self, value: T)
pub fn set_object_fit(&mut self, value: T)
Set the object_fit to the computed value value.
Sourcepub fn inherit_opacity(&mut self)
pub fn inherit_opacity(&mut self)
Inherit opacity from our parent style.
Sourcepub fn set_opacity(&mut self, value: T)
pub fn set_opacity(&mut self, value: T)
Set the opacity to the computed value value.
Sourcepub fn inherit_order(&mut self)
pub fn inherit_order(&mut self)
Inherit order from our parent style.
Sourcepub fn inherit_outline_style(&mut self)
pub fn inherit_outline_style(&mut self)
Inherit outline_style from our parent style.
Sourcepub fn set_outline_style(&mut self, value: T)
pub fn set_outline_style(&mut self, value: T)
Set the outline_style to the computed value value.
Sourcepub fn reset_overflow_wrap(&mut self)
pub fn reset_overflow_wrap(&mut self)
Reset overflow_wrap to the initial value.
Sourcepub fn set_overflow_wrap(&mut self, value: T)
pub fn set_overflow_wrap(&mut self, value: T)
Set the overflow_wrap to the computed value value.
Sourcepub fn reset_pointer_events(&mut self)
pub fn reset_pointer_events(&mut self)
Reset pointer_events to the initial value.
Sourcepub fn set_pointer_events(&mut self, value: T)
pub fn set_pointer_events(&mut self, value: T)
Set the pointer_events to the computed value value.
Sourcepub fn inherit_position(&mut self)
pub fn inherit_position(&mut self)
Inherit position from our parent style.
Sourcepub fn set_position(&mut self, value: T)
pub fn set_position(&mut self, value: T)
Set the position to the computed value value.
Sourcepub fn inherit__servo_overflow_clip_box(&mut self)
pub fn inherit__servo_overflow_clip_box(&mut self)
Inherit _servo_overflow_clip_box from our parent style.
Sourcepub fn set__servo_overflow_clip_box(&mut self, value: T)
pub fn set__servo_overflow_clip_box(&mut self, value: T)
Set the _servo_overflow_clip_box to the computed value value.
Sourcepub fn inherit__servo_top_layer(&mut self)
pub fn inherit__servo_top_layer(&mut self)
Inherit _servo_top_layer from our parent style.
Sourcepub fn set__servo_top_layer(&mut self, value: T)
pub fn set__servo_top_layer(&mut self, value: T)
Set the _servo_top_layer to the computed value value.
Sourcepub fn inherit_table_layout(&mut self)
pub fn inherit_table_layout(&mut self)
Inherit table_layout from our parent style.
Sourcepub fn set_table_layout(&mut self, value: T)
pub fn set_table_layout(&mut self, value: T)
Set the table_layout to the computed value value.
Sourcepub fn reset_text_align(&mut self)
pub fn reset_text_align(&mut self)
Reset text_align to the initial value.
Sourcepub fn set_text_align(&mut self, value: T)
pub fn set_text_align(&mut self, value: T)
Set the text_align to the computed value value.
Sourcepub fn reset_text_align_last(&mut self)
pub fn reset_text_align_last(&mut self)
Reset text_align_last to the initial value.
Sourcepub fn set_text_align_last(&mut self, value: T)
pub fn set_text_align_last(&mut self, value: T)
Set the text_align_last to the computed value value.
Sourcepub fn inherit_text_decoration_line(&mut self)
pub fn inherit_text_decoration_line(&mut self)
Inherit text_decoration_line from our parent style.
Sourcepub fn set_text_decoration_line(&mut self, value: T)
pub fn set_text_decoration_line(&mut self, value: T)
Set the text_decoration_line to the computed value value.
Sourcepub fn inherit_text_decoration_style(&mut self)
pub fn inherit_text_decoration_style(&mut self)
Inherit text_decoration_style from our parent style.
Sourcepub fn set_text_decoration_style(&mut self, value: T)
pub fn set_text_decoration_style(&mut self, value: T)
Set the text_decoration_style to the computed value value.
Sourcepub fn reset_text_justify(&mut self)
pub fn reset_text_justify(&mut self)
Reset text_justify to the initial value.
Sourcepub fn set_text_justify(&mut self, value: T)
pub fn set_text_justify(&mut self, value: T)
Set the text_justify to the computed value value.
Sourcepub fn reset_text_rendering(&mut self)
pub fn reset_text_rendering(&mut self)
Reset text_rendering to the initial value.
Sourcepub fn set_text_rendering(&mut self, value: T)
pub fn set_text_rendering(&mut self, value: T)
Set the text_rendering to the computed value value.
Sourcepub fn reset_text_transform(&mut self)
pub fn reset_text_transform(&mut self)
Reset text_transform to the initial value.
Sourcepub fn set_text_transform(&mut self, value: T)
pub fn set_text_transform(&mut self, value: T)
Set the text_transform to the computed value value.
Sourcepub fn reset_text_wrap_mode(&mut self)
pub fn reset_text_wrap_mode(&mut self)
Reset text_wrap_mode to the initial value.
Sourcepub fn set_text_wrap_mode(&mut self, value: T)
pub fn set_text_wrap_mode(&mut self, value: T)
Set the text_wrap_mode to the computed value value.
Sourcepub fn inherit_transform_style(&mut self)
pub fn inherit_transform_style(&mut self)
Inherit transform_style from our parent style.
Sourcepub fn set_transform_style(&mut self, value: T)
pub fn set_transform_style(&mut self, value: T)
Set the transform_style to the computed value value.
Sourcepub fn inherit_unicode_bidi(&mut self)
pub fn inherit_unicode_bidi(&mut self)
Inherit unicode_bidi from our parent style.
Sourcepub fn set_unicode_bidi(&mut self, value: T)
pub fn set_unicode_bidi(&mut self, value: T)
Set the unicode_bidi to the computed value value.
Sourcepub fn reset_visibility(&mut self)
pub fn reset_visibility(&mut self)
Reset visibility to the initial value.
Sourcepub fn set_visibility(&mut self, value: T)
pub fn set_visibility(&mut self, value: T)
Set the visibility to the computed value value.
Sourcepub fn reset_white_space_collapse(&mut self)
pub fn reset_white_space_collapse(&mut self)
Reset white_space_collapse to the initial value.
Sourcepub fn set_white_space_collapse(&mut self, value: T)
pub fn set_white_space_collapse(&mut self, value: T)
Set the white_space_collapse to the computed value value.
Sourcepub fn reset_word_break(&mut self)
pub fn reset_word_break(&mut self)
Reset word_break to the initial value.
Sourcepub fn set_word_break(&mut self, value: T)
pub fn set_word_break(&mut self, value: T)
Set the word_break to the computed value value.
Sourcepub fn reset_writing_mode(&mut self)
pub fn reset_writing_mode(&mut self)
Reset writing_mode to the initial value.
Sourcepub fn set_writing_mode(&mut self, value: T)
pub fn set_writing_mode(&mut self, value: T)
Set the writing_mode to the computed value value.
Sourcepub fn inherit_z_index(&mut self)
pub fn inherit_z_index(&mut self)
Inherit z_index from our parent style.
Sourcepub fn set_z_index(&mut self, value: T)
pub fn set_z_index(&mut self, value: T)
Set the z_index to the computed value value.
Sourcepub fn inherit_zoom(&mut self)
pub fn inherit_zoom(&mut self)
Inherit zoom from our parent style.
Sourcepub fn inherit_flex_grow(&mut self)
pub fn inherit_flex_grow(&mut self)
Inherit flex_grow from our parent style.
Sourcepub fn set_flex_grow(&mut self, value: T)
pub fn set_flex_grow(&mut self, value: T)
Set the flex_grow to the computed value value.
Sourcepub fn inherit_flex_shrink(&mut self)
pub fn inherit_flex_shrink(&mut self)
Inherit flex_shrink from our parent style.
Sourcepub fn set_flex_shrink(&mut self, value: T)
pub fn set_flex_shrink(&mut self, value: T)
Set the flex_shrink to the computed value value.
Sourcepub fn inherit_overflow_x(&mut self)
pub fn inherit_overflow_x(&mut self)
Inherit overflow_x from our parent style.
Sourcepub fn set_overflow_x(&mut self, value: T)
pub fn set_overflow_x(&mut self, value: T)
Set the overflow_x to the computed value value.
Sourcepub fn inherit_overflow_y(&mut self)
pub fn inherit_overflow_y(&mut self)
Inherit overflow_y from our parent style.
Sourcepub fn set_overflow_y(&mut self, value: T)
pub fn set_overflow_y(&mut self, value: T)
Set the overflow_y to the computed value value.
Sourcepub fn inherit_border_bottom_style(&mut self)
pub fn inherit_border_bottom_style(&mut self)
Inherit border_bottom_style from our parent style.
Sourcepub fn set_border_bottom_style(&mut self, value: T)
pub fn set_border_bottom_style(&mut self, value: T)
Set the border_bottom_style to the computed value value.
Sourcepub fn inherit_border_left_style(&mut self)
pub fn inherit_border_left_style(&mut self)
Inherit border_left_style from our parent style.
Sourcepub fn set_border_left_style(&mut self, value: T)
pub fn set_border_left_style(&mut self, value: T)
Set the border_left_style to the computed value value.
Sourcepub fn inherit_border_right_style(&mut self)
pub fn inherit_border_right_style(&mut self)
Inherit border_right_style from our parent style.
Sourcepub fn set_border_right_style(&mut self, value: T)
pub fn set_border_right_style(&mut self, value: T)
Set the border_right_style to the computed value value.
Sourcepub fn inherit_border_top_style(&mut self)
pub fn inherit_border_top_style(&mut self)
Inherit border_top_style from our parent style.
Sourcepub fn set_border_top_style(&mut self, value: T)
pub fn set_border_top_style(&mut self, value: T)
Set the border_top_style to the computed value value.
Sourcepub fn inherit_animation_composition(&mut self)
pub fn inherit_animation_composition(&mut self)
Inherit animation_composition from our parent style.
Sourcepub fn set_animation_composition(&mut self, value: T)
pub fn set_animation_composition(&mut self, value: T)
Set the animation_composition to the computed value value.
Sourcepub fn inherit_animation_delay(&mut self)
pub fn inherit_animation_delay(&mut self)
Inherit animation_delay from our parent style.
Sourcepub fn set_animation_delay(&mut self, value: T)
pub fn set_animation_delay(&mut self, value: T)
Set the animation_delay to the computed value value.
Sourcepub fn inherit_animation_direction(&mut self)
pub fn inherit_animation_direction(&mut self)
Inherit animation_direction from our parent style.
Sourcepub fn set_animation_direction(&mut self, value: T)
pub fn set_animation_direction(&mut self, value: T)
Set the animation_direction to the computed value value.
Sourcepub fn inherit_animation_duration(&mut self)
pub fn inherit_animation_duration(&mut self)
Inherit animation_duration from our parent style.
Sourcepub fn set_animation_duration(&mut self, value: T)
pub fn set_animation_duration(&mut self, value: T)
Set the animation_duration to the computed value value.
Sourcepub fn inherit_animation_fill_mode(&mut self)
pub fn inherit_animation_fill_mode(&mut self)
Inherit animation_fill_mode from our parent style.
Sourcepub fn set_animation_fill_mode(&mut self, value: T)
pub fn set_animation_fill_mode(&mut self, value: T)
Set the animation_fill_mode to the computed value value.
Sourcepub fn inherit_animation_iteration_count(&mut self)
pub fn inherit_animation_iteration_count(&mut self)
Inherit animation_iteration_count from our parent style.
Sourcepub fn set_animation_iteration_count(&mut self, value: T)
pub fn set_animation_iteration_count(&mut self, value: T)
Set the animation_iteration_count to the computed value value.
Sourcepub fn inherit_animation_name(&mut self)
pub fn inherit_animation_name(&mut self)
Inherit animation_name from our parent style.
Sourcepub fn set_animation_name(&mut self, value: T)
pub fn set_animation_name(&mut self, value: T)
Set the animation_name to the computed value value.
Sourcepub fn inherit_animation_play_state(&mut self)
pub fn inherit_animation_play_state(&mut self)
Inherit animation_play_state from our parent style.
Sourcepub fn set_animation_play_state(&mut self, value: T)
pub fn set_animation_play_state(&mut self, value: T)
Set the animation_play_state to the computed value value.
Sourcepub fn inherit_animation_timeline(&mut self)
pub fn inherit_animation_timeline(&mut self)
Inherit animation_timeline from our parent style.
Sourcepub fn set_animation_timeline(&mut self, value: T)
pub fn set_animation_timeline(&mut self, value: T)
Set the animation_timeline to the computed value value.
Sourcepub fn inherit_animation_timing_function(&mut self)
pub fn inherit_animation_timing_function(&mut self)
Inherit animation_timing_function from our parent style.
Sourcepub fn set_animation_timing_function(&mut self, value: T)
pub fn set_animation_timing_function(&mut self, value: T)
Set the animation_timing_function to the computed value value.
Sourcepub fn inherit_backdrop_filter(&mut self)
pub fn inherit_backdrop_filter(&mut self)
Inherit backdrop_filter from our parent style.
Sourcepub fn set_backdrop_filter(&mut self, value: T)
pub fn set_backdrop_filter(&mut self, value: T)
Set the backdrop_filter to the computed value value.
Sourcepub fn inherit_background_attachment(&mut self)
pub fn inherit_background_attachment(&mut self)
Inherit background_attachment from our parent style.
Sourcepub fn set_background_attachment(&mut self, value: T)
pub fn set_background_attachment(&mut self, value: T)
Set the background_attachment to the computed value value.
Sourcepub fn inherit_background_clip(&mut self)
pub fn inherit_background_clip(&mut self)
Inherit background_clip from our parent style.
Sourcepub fn set_background_clip(&mut self, value: T)
pub fn set_background_clip(&mut self, value: T)
Set the background_clip to the computed value value.
Sourcepub fn inherit_background_image(&mut self)
pub fn inherit_background_image(&mut self)
Inherit background_image from our parent style.
Sourcepub fn set_background_image(&mut self, value: T)
pub fn set_background_image(&mut self, value: T)
Set the background_image to the computed value value.
Sourcepub fn inherit_background_origin(&mut self)
pub fn inherit_background_origin(&mut self)
Inherit background_origin from our parent style.
Sourcepub fn set_background_origin(&mut self, value: T)
pub fn set_background_origin(&mut self, value: T)
Set the background_origin to the computed value value.
Sourcepub fn inherit_background_position_x(&mut self)
pub fn inherit_background_position_x(&mut self)
Inherit background_position_x from our parent style.
Sourcepub fn set_background_position_x(&mut self, value: T)
pub fn set_background_position_x(&mut self, value: T)
Set the background_position_x to the computed value value.
Sourcepub fn inherit_background_position_y(&mut self)
pub fn inherit_background_position_y(&mut self)
Inherit background_position_y from our parent style.
Sourcepub fn set_background_position_y(&mut self, value: T)
pub fn set_background_position_y(&mut self, value: T)
Set the background_position_y to the computed value value.
Sourcepub fn inherit_background_repeat(&mut self)
pub fn inherit_background_repeat(&mut self)
Inherit background_repeat from our parent style.
Sourcepub fn set_background_repeat(&mut self, value: T)
pub fn set_background_repeat(&mut self, value: T)
Set the background_repeat to the computed value value.
Sourcepub fn inherit_background_size(&mut self)
pub fn inherit_background_size(&mut self)
Inherit background_size from our parent style.
Sourcepub fn set_background_size(&mut self, value: T)
pub fn set_background_size(&mut self, value: T)
Set the background_size to the computed value value.
Sourcepub fn inherit_border_image_outset(&mut self)
pub fn inherit_border_image_outset(&mut self)
Inherit border_image_outset from our parent style.
Sourcepub fn set_border_image_outset(&mut self, value: T)
pub fn set_border_image_outset(&mut self, value: T)
Set the border_image_outset to the computed value value.
Sourcepub fn inherit_border_image_slice(&mut self)
pub fn inherit_border_image_slice(&mut self)
Inherit border_image_slice from our parent style.
Sourcepub fn set_border_image_slice(&mut self, value: T)
pub fn set_border_image_slice(&mut self, value: T)
Set the border_image_slice to the computed value value.
Sourcepub fn inherit_border_image_width(&mut self)
pub fn inherit_border_image_width(&mut self)
Inherit border_image_width from our parent style.
Sourcepub fn set_border_image_width(&mut self, value: T)
pub fn set_border_image_width(&mut self, value: T)
Set the border_image_width to the computed value value.
Sourcepub fn reset_border_spacing(&mut self)
pub fn reset_border_spacing(&mut self)
Reset border_spacing to the initial value.
Sourcepub fn set_border_spacing(&mut self, value: T)
pub fn set_border_spacing(&mut self, value: T)
Set the border_spacing to the computed value value.
Sourcepub fn inherit_box_shadow(&mut self)
pub fn inherit_box_shadow(&mut self)
Inherit box_shadow from our parent style.
Sourcepub fn set_box_shadow(&mut self, value: T)
pub fn set_box_shadow(&mut self, value: T)
Set the box_shadow to the computed value value.
Sourcepub fn inherit_clip(&mut self)
pub fn inherit_clip(&mut self)
Inherit clip from our parent style.
Sourcepub fn inherit_clip_path(&mut self)
pub fn inherit_clip_path(&mut self)
Inherit clip_path from our parent style.
Sourcepub fn set_clip_path(&mut self, value: T)
pub fn set_clip_path(&mut self, value: T)
Set the clip_path to the computed value value.
Sourcepub fn reset_color(&mut self)
pub fn reset_color(&mut self)
Reset color to the initial value.
Sourcepub fn reset_color_scheme(&mut self)
pub fn reset_color_scheme(&mut self)
Reset color_scheme to the initial value.
Sourcepub fn set_color_scheme(&mut self, value: T)
pub fn set_color_scheme(&mut self, value: T)
Set the color_scheme to the computed value value.
Sourcepub fn inherit_column_width(&mut self)
pub fn inherit_column_width(&mut self)
Inherit column_width from our parent style.
Sourcepub fn set_column_width(&mut self, value: T)
pub fn set_column_width(&mut self, value: T)
Set the column_width to the computed value value.
Sourcepub fn inherit_container_name(&mut self)
pub fn inherit_container_name(&mut self)
Inherit container_name from our parent style.
Sourcepub fn set_container_name(&mut self, value: T)
pub fn set_container_name(&mut self, value: T)
Set the container_name to the computed value value.
Sourcepub fn inherit_content(&mut self)
pub fn inherit_content(&mut self)
Inherit content from our parent style.
Sourcepub fn set_content(&mut self, value: T)
pub fn set_content(&mut self, value: T)
Set the content to the computed value value.
Sourcepub fn inherit_counter_increment(&mut self)
pub fn inherit_counter_increment(&mut self)
Inherit counter_increment from our parent style.
Sourcepub fn set_counter_increment(&mut self, value: T)
pub fn set_counter_increment(&mut self, value: T)
Set the counter_increment to the computed value value.
Sourcepub fn inherit_counter_reset(&mut self)
pub fn inherit_counter_reset(&mut self)
Inherit counter_reset from our parent style.
Sourcepub fn set_counter_reset(&mut self, value: T)
pub fn set_counter_reset(&mut self, value: T)
Set the counter_reset to the computed value value.
Sourcepub fn reset_cursor(&mut self)
pub fn reset_cursor(&mut self)
Reset cursor to the initial value.
Sourcepub fn set_cursor(&mut self, value: T)
pub fn set_cursor(&mut self, value: T)
Set the cursor to the computed value value.
Sourcepub fn inherit_filter(&mut self)
pub fn inherit_filter(&mut self)
Inherit filter from our parent style.
Sourcepub fn set_filter(&mut self, value: T)
pub fn set_filter(&mut self, value: T)
Set the filter to the computed value value.
Sourcepub fn inherit_flex_basis(&mut self)
pub fn inherit_flex_basis(&mut self)
Inherit flex_basis from our parent style.
Sourcepub fn set_flex_basis(&mut self, value: T)
pub fn set_flex_basis(&mut self, value: T)
Set the flex_basis to the computed value value.
Sourcepub fn reset_font_family(&mut self)
pub fn reset_font_family(&mut self)
Reset font_family to the initial value.
Sourcepub fn set_font_family(&mut self, value: T)
pub fn set_font_family(&mut self, value: T)
Set the font_family to the computed value value.
Sourcepub fn reset_font_size(&mut self)
pub fn reset_font_size(&mut self)
Reset font_size to the initial value.
Sourcepub fn set_font_size(&mut self, value: T)
pub fn set_font_size(&mut self, value: T)
Set the font_size to the computed value value.
Sourcepub fn reset_font_variation_settings(&mut self)
pub fn reset_font_variation_settings(&mut self)
Reset font_variation_settings to the initial value.
Sourcepub fn set_font_variation_settings(&mut self, value: T)
pub fn set_font_variation_settings(&mut self, value: T)
Set the font_variation_settings to the computed value value.
Sourcepub fn inherit_grid_template_areas(&mut self)
pub fn inherit_grid_template_areas(&mut self)
Inherit grid_template_areas from our parent style.
Sourcepub fn set_grid_template_areas(&mut self, value: T)
pub fn set_grid_template_areas(&mut self, value: T)
Set the grid_template_areas to the computed value value.
Sourcepub fn reset_letter_spacing(&mut self)
pub fn reset_letter_spacing(&mut self)
Reset letter_spacing to the initial value.
Sourcepub fn set_letter_spacing(&mut self, value: T)
pub fn set_letter_spacing(&mut self, value: T)
Set the letter_spacing to the computed value value.
Sourcepub fn reset_line_height(&mut self)
pub fn reset_line_height(&mut self)
Reset line_height to the initial value.
Sourcepub fn set_line_height(&mut self, value: T)
pub fn set_line_height(&mut self, value: T)
Set the line_height to the computed value value.
Sourcepub fn inherit_mask_image(&mut self)
pub fn inherit_mask_image(&mut self)
Inherit mask_image from our parent style.
Sourcepub fn set_mask_image(&mut self, value: T)
pub fn set_mask_image(&mut self, value: T)
Set the mask_image to the computed value value.
Sourcepub fn inherit_offset_path(&mut self)
pub fn inherit_offset_path(&mut self)
Inherit offset_path from our parent style.
Sourcepub fn set_offset_path(&mut self, value: T)
pub fn set_offset_path(&mut self, value: T)
Set the offset_path to the computed value value.
Sourcepub fn inherit_perspective(&mut self)
pub fn inherit_perspective(&mut self)
Inherit perspective from our parent style.
Sourcepub fn set_perspective(&mut self, value: T)
pub fn set_perspective(&mut self, value: T)
Set the perspective to the computed value value.
Sourcepub fn reset_quotes(&mut self)
pub fn reset_quotes(&mut self)
Reset quotes to the initial value.
Sourcepub fn set_quotes(&mut self, value: T)
pub fn set_quotes(&mut self, value: T)
Set the quotes to the computed value value.
Sourcepub fn inherit_rotate(&mut self)
pub fn inherit_rotate(&mut self)
Inherit rotate from our parent style.
Sourcepub fn set_rotate(&mut self, value: T)
pub fn set_rotate(&mut self, value: T)
Set the rotate to the computed value value.
Sourcepub fn inherit_scale(&mut self)
pub fn inherit_scale(&mut self)
Inherit scale from our parent style.
Sourcepub fn reset_text_indent(&mut self)
pub fn reset_text_indent(&mut self)
Reset text_indent to the initial value.
Sourcepub fn set_text_indent(&mut self, value: T)
pub fn set_text_indent(&mut self, value: T)
Set the text_indent to the computed value value.
Sourcepub fn inherit_text_overflow(&mut self)
pub fn inherit_text_overflow(&mut self)
Inherit text_overflow from our parent style.
Sourcepub fn set_text_overflow(&mut self, value: T)
pub fn set_text_overflow(&mut self, value: T)
Set the text_overflow to the computed value value.
Sourcepub fn reset_text_shadow(&mut self)
pub fn reset_text_shadow(&mut self)
Reset text_shadow to the initial value.
Sourcepub fn set_text_shadow(&mut self, value: T)
pub fn set_text_shadow(&mut self, value: T)
Set the text_shadow to the computed value value.
Sourcepub fn inherit_transform(&mut self)
pub fn inherit_transform(&mut self)
Inherit transform from our parent style.
Sourcepub fn set_transform(&mut self, value: T)
pub fn set_transform(&mut self, value: T)
Set the transform to the computed value value.
Sourcepub fn inherit_transform_origin(&mut self)
pub fn inherit_transform_origin(&mut self)
Inherit transform_origin from our parent style.
Sourcepub fn set_transform_origin(&mut self, value: T)
pub fn set_transform_origin(&mut self, value: T)
Set the transform_origin to the computed value value.
Sourcepub fn inherit_transition_behavior(&mut self)
pub fn inherit_transition_behavior(&mut self)
Inherit transition_behavior from our parent style.
Sourcepub fn set_transition_behavior(&mut self, value: T)
pub fn set_transition_behavior(&mut self, value: T)
Set the transition_behavior to the computed value value.
Sourcepub fn inherit_transition_delay(&mut self)
pub fn inherit_transition_delay(&mut self)
Inherit transition_delay from our parent style.
Sourcepub fn set_transition_delay(&mut self, value: T)
pub fn set_transition_delay(&mut self, value: T)
Set the transition_delay to the computed value value.
Sourcepub fn inherit_transition_duration(&mut self)
pub fn inherit_transition_duration(&mut self)
Inherit transition_duration from our parent style.
Sourcepub fn set_transition_duration(&mut self, value: T)
pub fn set_transition_duration(&mut self, value: T)
Set the transition_duration to the computed value value.
Sourcepub fn inherit_transition_property(&mut self)
pub fn inherit_transition_property(&mut self)
Inherit transition_property from our parent style.
Sourcepub fn set_transition_property(&mut self, value: T)
pub fn set_transition_property(&mut self, value: T)
Set the transition_property to the computed value value.
Sourcepub fn inherit_transition_timing_function(&mut self)
pub fn inherit_transition_timing_function(&mut self)
Inherit transition_timing_function from our parent style.
Sourcepub fn set_transition_timing_function(&mut self, value: T)
pub fn set_transition_timing_function(&mut self, value: T)
Set the transition_timing_function to the computed value value.
Sourcepub fn inherit_translate(&mut self)
pub fn inherit_translate(&mut self)
Inherit translate from our parent style.
Sourcepub fn set_translate(&mut self, value: T)
pub fn set_translate(&mut self, value: T)
Set the translate to the computed value value.
Sourcepub fn inherit_vertical_align(&mut self)
pub fn inherit_vertical_align(&mut self)
Inherit vertical_align from our parent style.
Sourcepub fn set_vertical_align(&mut self, value: T)
pub fn set_vertical_align(&mut self, value: T)
Set the vertical_align to the computed value value.
Sourcepub fn inherit_view_transition_class(&mut self)
pub fn inherit_view_transition_class(&mut self)
Inherit view_transition_class from our parent style.
Sourcepub fn set_view_transition_class(&mut self, value: T)
pub fn set_view_transition_class(&mut self, value: T)
Set the view_transition_class to the computed value value.
Sourcepub fn inherit_view_transition_name(&mut self)
pub fn inherit_view_transition_name(&mut self)
Inherit view_transition_name from our parent style.
Sourcepub fn set_view_transition_name(&mut self, value: T)
pub fn set_view_transition_name(&mut self, value: T)
Set the view_transition_name to the computed value value.
Sourcepub fn inherit_will_change(&mut self)
pub fn inherit_will_change(&mut self)
Inherit will_change from our parent style.
Sourcepub fn set_will_change(&mut self, value: T)
pub fn set_will_change(&mut self, value: T)
Set the will_change to the computed value value.
Sourcepub fn reset_word_spacing(&mut self)
pub fn reset_word_spacing(&mut self)
Reset word_spacing to the initial value.
Sourcepub fn set_word_spacing(&mut self, value: T)
pub fn set_word_spacing(&mut self, value: T)
Set the word_spacing to the computed value value.
Sourcepub fn reset__x_lang(&mut self)
pub fn reset__x_lang(&mut self)
Reset _x_lang to the initial value.
Sourcepub fn set__x_lang(&mut self, value: T)
pub fn set__x_lang(&mut self, value: T)
Set the _x_lang to the computed value value.
Sourcepub fn inherit_object_position(&mut self)
pub fn inherit_object_position(&mut self)
Inherit object_position from our parent style.
Sourcepub fn set_object_position(&mut self, value: T)
pub fn set_object_position(&mut self, value: T)
Set the object_position to the computed value value.
Sourcepub fn inherit_perspective_origin(&mut self)
pub fn inherit_perspective_origin(&mut self)
Inherit perspective_origin from our parent style.
Sourcepub fn set_perspective_origin(&mut self, value: T)
pub fn set_perspective_origin(&mut self, value: T)
Set the perspective_origin to the computed value value.
Sourcepub fn inherit_grid_template_columns(&mut self)
pub fn inherit_grid_template_columns(&mut self)
Inherit grid_template_columns from our parent style.
Sourcepub fn set_grid_template_columns(&mut self, value: T)
pub fn set_grid_template_columns(&mut self, value: T)
Set the grid_template_columns to the computed value value.
Sourcepub fn inherit_grid_template_rows(&mut self)
pub fn inherit_grid_template_rows(&mut self)
Inherit grid_template_rows from our parent style.
Sourcepub fn set_grid_template_rows(&mut self, value: T)
pub fn set_grid_template_rows(&mut self, value: T)
Set the grid_template_rows to the computed value value.
Sourcepub fn inherit_border_image_source(&mut self)
pub fn inherit_border_image_source(&mut self)
Inherit border_image_source from our parent style.
Sourcepub fn set_border_image_source(&mut self, value: T)
pub fn set_border_image_source(&mut self, value: T)
Set the border_image_source to the computed value value.
Sourcepub fn reset_list_style_image(&mut self)
pub fn reset_list_style_image(&mut self)
Reset list_style_image to the initial value.
Sourcepub fn set_list_style_image(&mut self, value: T)
pub fn set_list_style_image(&mut self, value: T)
Set the list_style_image to the computed value value.
Sourcepub fn inherit_grid_auto_columns(&mut self)
pub fn inherit_grid_auto_columns(&mut self)
Inherit grid_auto_columns from our parent style.
Sourcepub fn set_grid_auto_columns(&mut self, value: T)
pub fn set_grid_auto_columns(&mut self, value: T)
Set the grid_auto_columns to the computed value value.
Sourcepub fn inherit_grid_auto_rows(&mut self)
pub fn inherit_grid_auto_rows(&mut self)
Inherit grid_auto_rows from our parent style.
Sourcepub fn set_grid_auto_rows(&mut self, value: T)
pub fn set_grid_auto_rows(&mut self, value: T)
Set the grid_auto_rows to the computed value value.
Sourcepub fn inherit_outline_offset(&mut self)
pub fn inherit_outline_offset(&mut self)
Inherit outline_offset from our parent style.
Sourcepub fn set_outline_offset(&mut self, value: T)
pub fn set_outline_offset(&mut self, value: T)
Set the outline_offset to the computed value value.
Sourcepub fn inherit_overflow_clip_margin(&mut self)
pub fn inherit_overflow_clip_margin(&mut self)
Inherit overflow_clip_margin from our parent style.
Sourcepub fn set_overflow_clip_margin(&mut self, value: T)
pub fn set_overflow_clip_margin(&mut self, value: T)
Set the overflow_clip_margin to the computed value value.
Sourcepub fn inherit_column_gap(&mut self)
pub fn inherit_column_gap(&mut self)
Inherit column_gap from our parent style.
Sourcepub fn set_column_gap(&mut self, value: T)
pub fn set_column_gap(&mut self, value: T)
Set the column_gap to the computed value value.
Sourcepub fn inherit_row_gap(&mut self)
pub fn inherit_row_gap(&mut self)
Inherit row_gap from our parent style.
Sourcepub fn set_row_gap(&mut self, value: T)
pub fn set_row_gap(&mut self, value: T)
Set the row_gap to the computed value value.
Sourcepub fn inherit_grid_column_end(&mut self)
pub fn inherit_grid_column_end(&mut self)
Inherit grid_column_end from our parent style.
Sourcepub fn set_grid_column_end(&mut self, value: T)
pub fn set_grid_column_end(&mut self, value: T)
Set the grid_column_end to the computed value value.
Sourcepub fn inherit_grid_column_start(&mut self)
pub fn inherit_grid_column_start(&mut self)
Inherit grid_column_start from our parent style.
Sourcepub fn set_grid_column_start(&mut self, value: T)
pub fn set_grid_column_start(&mut self, value: T)
Set the grid_column_start to the computed value value.
Sourcepub fn inherit_grid_row_end(&mut self)
pub fn inherit_grid_row_end(&mut self)
Inherit grid_row_end from our parent style.
Sourcepub fn set_grid_row_end(&mut self, value: T)
pub fn set_grid_row_end(&mut self, value: T)
Set the grid_row_end to the computed value value.
Sourcepub fn inherit_grid_row_start(&mut self)
pub fn inherit_grid_row_start(&mut self)
Inherit grid_row_start from our parent style.
Sourcepub fn set_grid_row_start(&mut self, value: T)
pub fn set_grid_row_start(&mut self, value: T)
Set the grid_row_start to the computed value value.
Sourcepub fn inherit_max_height(&mut self)
pub fn inherit_max_height(&mut self)
Inherit max_height from our parent style.
Sourcepub fn set_max_height(&mut self, value: T)
pub fn set_max_height(&mut self, value: T)
Set the max_height to the computed value value.
Sourcepub fn inherit_max_width(&mut self)
pub fn inherit_max_width(&mut self)
Inherit max_width from our parent style.
Sourcepub fn set_max_width(&mut self, value: T)
pub fn set_max_width(&mut self, value: T)
Set the max_width to the computed value value.
Sourcepub fn inherit_border_bottom_left_radius(&mut self)
pub fn inherit_border_bottom_left_radius(&mut self)
Inherit border_bottom_left_radius from our parent style.
Sourcepub fn set_border_bottom_left_radius(&mut self, value: T)
pub fn set_border_bottom_left_radius(&mut self, value: T)
Set the border_bottom_left_radius to the computed value value.
Sourcepub fn inherit_border_bottom_right_radius(&mut self)
pub fn inherit_border_bottom_right_radius(&mut self)
Inherit border_bottom_right_radius from our parent style.
Sourcepub fn set_border_bottom_right_radius(&mut self, value: T)
pub fn set_border_bottom_right_radius(&mut self, value: T)
Set the border_bottom_right_radius to the computed value value.
Sourcepub fn inherit_border_top_left_radius(&mut self)
pub fn inherit_border_top_left_radius(&mut self)
Inherit border_top_left_radius from our parent style.
Sourcepub fn set_border_top_left_radius(&mut self, value: T)
pub fn set_border_top_left_radius(&mut self, value: T)
Set the border_top_left_radius to the computed value value.
Sourcepub fn inherit_border_top_right_radius(&mut self)
pub fn inherit_border_top_right_radius(&mut self)
Inherit border_top_right_radius from our parent style.
Sourcepub fn set_border_top_right_radius(&mut self, value: T)
pub fn set_border_top_right_radius(&mut self, value: T)
Set the border_top_right_radius to the computed value value.
Sourcepub fn inherit_bottom(&mut self)
pub fn inherit_bottom(&mut self)
Inherit bottom from our parent style.
Sourcepub fn set_bottom(&mut self, value: T)
pub fn set_bottom(&mut self, value: T)
Set the bottom to the computed value value.
Sourcepub fn inherit_left(&mut self)
pub fn inherit_left(&mut self)
Inherit left from our parent style.
Sourcepub fn inherit_right(&mut self)
pub fn inherit_right(&mut self)
Inherit right from our parent style.
Sourcepub fn inherit_top(&mut self)
pub fn inherit_top(&mut self)
Inherit top from our parent style.
Sourcepub fn inherit_margin_bottom(&mut self)
pub fn inherit_margin_bottom(&mut self)
Inherit margin_bottom from our parent style.
Sourcepub fn set_margin_bottom(&mut self, value: T)
pub fn set_margin_bottom(&mut self, value: T)
Set the margin_bottom to the computed value value.
Sourcepub fn inherit_margin_left(&mut self)
pub fn inherit_margin_left(&mut self)
Inherit margin_left from our parent style.
Sourcepub fn set_margin_left(&mut self, value: T)
pub fn set_margin_left(&mut self, value: T)
Set the margin_left to the computed value value.
Sourcepub fn inherit_margin_right(&mut self)
pub fn inherit_margin_right(&mut self)
Inherit margin_right from our parent style.
Sourcepub fn set_margin_right(&mut self, value: T)
pub fn set_margin_right(&mut self, value: T)
Set the margin_right to the computed value value.
Sourcepub fn inherit_margin_top(&mut self)
pub fn inherit_margin_top(&mut self)
Inherit margin_top from our parent style.
Sourcepub fn set_margin_top(&mut self, value: T)
pub fn set_margin_top(&mut self, value: T)
Set the margin_top to the computed value value.
Sourcepub fn inherit_padding_bottom(&mut self)
pub fn inherit_padding_bottom(&mut self)
Inherit padding_bottom from our parent style.
Sourcepub fn set_padding_bottom(&mut self, value: T)
pub fn set_padding_bottom(&mut self, value: T)
Set the padding_bottom to the computed value value.
Sourcepub fn inherit_padding_left(&mut self)
pub fn inherit_padding_left(&mut self)
Inherit padding_left from our parent style.
Sourcepub fn set_padding_left(&mut self, value: T)
pub fn set_padding_left(&mut self, value: T)
Set the padding_left to the computed value value.
Sourcepub fn inherit_padding_right(&mut self)
pub fn inherit_padding_right(&mut self)
Inherit padding_right from our parent style.
Sourcepub fn set_padding_right(&mut self, value: T)
pub fn set_padding_right(&mut self, value: T)
Set the padding_right to the computed value value.
Sourcepub fn inherit_padding_top(&mut self)
pub fn inherit_padding_top(&mut self)
Inherit padding_top from our parent style.
Sourcepub fn set_padding_top(&mut self, value: T)
pub fn set_padding_top(&mut self, value: T)
Set the padding_top to the computed value value.
Sourcepub fn inherit_height(&mut self)
pub fn inherit_height(&mut self)
Inherit height from our parent style.
Sourcepub fn set_height(&mut self, value: T)
pub fn set_height(&mut self, value: T)
Set the height to the computed value value.
Sourcepub fn inherit_min_height(&mut self)
pub fn inherit_min_height(&mut self)
Inherit min_height from our parent style.
Sourcepub fn set_min_height(&mut self, value: T)
pub fn set_min_height(&mut self, value: T)
Set the min_height to the computed value value.
Sourcepub fn inherit_min_width(&mut self)
pub fn inherit_min_width(&mut self)
Inherit min_width from our parent style.
Sourcepub fn set_min_width(&mut self, value: T)
pub fn set_min_width(&mut self, value: T)
Set the min_width to the computed value value.
Sourcepub fn inherit_width(&mut self)
pub fn inherit_width(&mut self)
Inherit width from our parent style.
Sourcepub fn inherit_border_bottom_width(&mut self)
pub fn inherit_border_bottom_width(&mut self)
Inherit border_bottom_width from our parent style.
Sourcepub fn set_border_bottom_width(&mut self, value: T)
pub fn set_border_bottom_width(&mut self, value: T)
Set the border_bottom_width to the computed value value.
Sourcepub fn inherit_border_left_width(&mut self)
pub fn inherit_border_left_width(&mut self)
Inherit border_left_width from our parent style.
Sourcepub fn set_border_left_width(&mut self, value: T)
pub fn set_border_left_width(&mut self, value: T)
Set the border_left_width to the computed value value.
Sourcepub fn inherit_border_right_width(&mut self)
pub fn inherit_border_right_width(&mut self)
Inherit border_right_width from our parent style.
Sourcepub fn set_border_right_width(&mut self, value: T)
pub fn set_border_right_width(&mut self, value: T)
Set the border_right_width to the computed value value.
Sourcepub fn inherit_border_top_width(&mut self)
pub fn inherit_border_top_width(&mut self)
Inherit border_top_width from our parent style.
Sourcepub fn set_border_top_width(&mut self, value: T)
pub fn set_border_top_width(&mut self, value: T)
Set the border_top_width to the computed value value.
Sourcepub fn inherit_outline_width(&mut self)
pub fn inherit_outline_width(&mut self)
Inherit outline_width from our parent style.
Sourcepub fn set_outline_width(&mut self, value: T)
pub fn set_outline_width(&mut self, value: T)
Set the outline_width to the computed value value.
Sourcepub fn inherit_background_color(&mut self)
pub fn inherit_background_color(&mut self)
Inherit background_color from our parent style.
Sourcepub fn set_background_color(&mut self, value: T)
pub fn set_background_color(&mut self, value: T)
Set the background_color to the computed value value.
Sourcepub fn inherit_border_bottom_color(&mut self)
pub fn inherit_border_bottom_color(&mut self)
Inherit border_bottom_color from our parent style.
Sourcepub fn set_border_bottom_color(&mut self, value: T)
pub fn set_border_bottom_color(&mut self, value: T)
Set the border_bottom_color to the computed value value.
Sourcepub fn inherit_border_left_color(&mut self)
pub fn inherit_border_left_color(&mut self)
Inherit border_left_color from our parent style.
Sourcepub fn set_border_left_color(&mut self, value: T)
pub fn set_border_left_color(&mut self, value: T)
Set the border_left_color to the computed value value.
Sourcepub fn inherit_border_right_color(&mut self)
pub fn inherit_border_right_color(&mut self)
Inherit border_right_color from our parent style.
Sourcepub fn set_border_right_color(&mut self, value: T)
pub fn set_border_right_color(&mut self, value: T)
Set the border_right_color to the computed value value.
Sourcepub fn inherit_border_top_color(&mut self)
pub fn inherit_border_top_color(&mut self)
Inherit border_top_color from our parent style.
Sourcepub fn set_border_top_color(&mut self, value: T)
pub fn set_border_top_color(&mut self, value: T)
Set the border_top_color to the computed value value.
Sourcepub fn inherit_outline_color(&mut self)
pub fn inherit_outline_color(&mut self)
Inherit outline_color from our parent style.
Sourcepub fn set_outline_color(&mut self, value: T)
pub fn set_outline_color(&mut self, value: T)
Set the outline_color to the computed value value.
Sourcepub fn inherit_text_decoration_color(&mut self)
pub fn inherit_text_decoration_color(&mut self)
Inherit text_decoration_color from our parent style.
Sourcepub fn set_text_decoration_color(&mut self, value: T)
pub fn set_text_decoration_color(&mut self, value: T)
Set the text_decoration_color to the computed value value.
Sourcepub fn for_inheritance(
device: &'a Device,
stylist: Option<&'a Stylist>,
parent: Option<&'a ComputedValues>,
pseudo: Option<&'a PseudoElement>,
) -> Self
pub fn for_inheritance( device: &'a Device, stylist: Option<&'a Stylist>, parent: Option<&'a ComputedValues>, pseudo: Option<&'a PseudoElement>, ) -> Self
Inherits style from the parent element, accounting for the default computed values that need to be provided as well.
Sourcepub fn has_visited_style(&self) -> bool
pub fn has_visited_style(&self) -> bool
Returns whether we have a visited style.
Sourcepub fn is_pseudo_element(&self) -> bool
pub fn is_pseudo_element(&self) -> bool
Returns whether we’re a pseudo-elements style.
Sourcepub fn default_style(&self) -> &'a ComputedValues
pub fn default_style(&self) -> &'a ComputedValues
Returns the style we’re getting reset properties from.
Sourcepub fn get_background(&self) -> &Background
pub fn get_background(&self) -> &Background
Gets an immutable view of the current Background style.
Sourcepub fn mutate_background(&mut self) -> &mut Background
pub fn mutate_background(&mut self) -> &mut Background
Gets a mutable view of the current Background style.
Sourcepub fn take_background(&mut self) -> UniqueArc<Background>
pub fn take_background(&mut self) -> UniqueArc<Background>
Gets a mutable view of the current Background style.
Sourcepub fn put_background(&mut self, s: UniqueArc<Background>)
pub fn put_background(&mut self, s: UniqueArc<Background>)
Gets a mutable view of the current Background style.
Sourcepub fn get_background_if_mutated(&mut self) -> Option<&mut Background>
pub fn get_background_if_mutated(&mut self) -> Option<&mut Background>
Gets a mutable view of the current Background style,
only if it’s been mutated before.
Sourcepub fn reset_background_struct(&mut self)
pub fn reset_background_struct(&mut self)
Reset the current Background style to its default value.
Sourcepub fn get_border(&self) -> &Border
pub fn get_border(&self) -> &Border
Gets an immutable view of the current Border style.
Sourcepub fn mutate_border(&mut self) -> &mut Border
pub fn mutate_border(&mut self) -> &mut Border
Gets a mutable view of the current Border style.
Sourcepub fn take_border(&mut self) -> UniqueArc<Border>
pub fn take_border(&mut self) -> UniqueArc<Border>
Gets a mutable view of the current Border style.
Sourcepub fn put_border(&mut self, s: UniqueArc<Border>)
pub fn put_border(&mut self, s: UniqueArc<Border>)
Gets a mutable view of the current Border style.
Sourcepub fn get_border_if_mutated(&mut self) -> Option<&mut Border>
pub fn get_border_if_mutated(&mut self) -> Option<&mut Border>
Gets a mutable view of the current Border style,
only if it’s been mutated before.
Sourcepub fn reset_border_struct(&mut self)
pub fn reset_border_struct(&mut self)
Reset the current Border style to its default value.
Sourcepub fn mutate_box(&mut self) -> &mut Box
pub fn mutate_box(&mut self) -> &mut Box
Gets a mutable view of the current Box style.
Sourcepub fn get_box_if_mutated(&mut self) -> Option<&mut Box>
pub fn get_box_if_mutated(&mut self) -> Option<&mut Box>
Gets a mutable view of the current Box style,
only if it’s been mutated before.
Sourcepub fn reset_box_struct(&mut self)
pub fn reset_box_struct(&mut self)
Reset the current Box style to its default value.
Sourcepub fn get_column(&self) -> &Column
pub fn get_column(&self) -> &Column
Gets an immutable view of the current Column style.
Sourcepub fn mutate_column(&mut self) -> &mut Column
pub fn mutate_column(&mut self) -> &mut Column
Gets a mutable view of the current Column style.
Sourcepub fn take_column(&mut self) -> UniqueArc<Column>
pub fn take_column(&mut self) -> UniqueArc<Column>
Gets a mutable view of the current Column style.
Sourcepub fn put_column(&mut self, s: UniqueArc<Column>)
pub fn put_column(&mut self, s: UniqueArc<Column>)
Gets a mutable view of the current Column style.
Sourcepub fn get_column_if_mutated(&mut self) -> Option<&mut Column>
pub fn get_column_if_mutated(&mut self) -> Option<&mut Column>
Gets a mutable view of the current Column style,
only if it’s been mutated before.
Sourcepub fn reset_column_struct(&mut self)
pub fn reset_column_struct(&mut self)
Reset the current Column style to its default value.
Sourcepub fn get_counters(&self) -> &Counters
pub fn get_counters(&self) -> &Counters
Gets an immutable view of the current Counters style.
Sourcepub fn mutate_counters(&mut self) -> &mut Counters
pub fn mutate_counters(&mut self) -> &mut Counters
Gets a mutable view of the current Counters style.
Sourcepub fn take_counters(&mut self) -> UniqueArc<Counters>
pub fn take_counters(&mut self) -> UniqueArc<Counters>
Gets a mutable view of the current Counters style.
Sourcepub fn put_counters(&mut self, s: UniqueArc<Counters>)
pub fn put_counters(&mut self, s: UniqueArc<Counters>)
Gets a mutable view of the current Counters style.
Sourcepub fn get_counters_if_mutated(&mut self) -> Option<&mut Counters>
pub fn get_counters_if_mutated(&mut self) -> Option<&mut Counters>
Gets a mutable view of the current Counters style,
only if it’s been mutated before.
Sourcepub fn reset_counters_struct(&mut self)
pub fn reset_counters_struct(&mut self)
Reset the current Counters style to its default value.
Sourcepub fn get_effects(&self) -> &Effects
pub fn get_effects(&self) -> &Effects
Gets an immutable view of the current Effects style.
Sourcepub fn mutate_effects(&mut self) -> &mut Effects
pub fn mutate_effects(&mut self) -> &mut Effects
Gets a mutable view of the current Effects style.
Sourcepub fn take_effects(&mut self) -> UniqueArc<Effects>
pub fn take_effects(&mut self) -> UniqueArc<Effects>
Gets a mutable view of the current Effects style.
Sourcepub fn put_effects(&mut self, s: UniqueArc<Effects>)
pub fn put_effects(&mut self, s: UniqueArc<Effects>)
Gets a mutable view of the current Effects style.
Sourcepub fn get_effects_if_mutated(&mut self) -> Option<&mut Effects>
pub fn get_effects_if_mutated(&mut self) -> Option<&mut Effects>
Gets a mutable view of the current Effects style,
only if it’s been mutated before.
Sourcepub fn reset_effects_struct(&mut self)
pub fn reset_effects_struct(&mut self)
Reset the current Effects style to its default value.
Sourcepub fn mutate_font(&mut self) -> &mut Font
pub fn mutate_font(&mut self) -> &mut Font
Gets a mutable view of the current Font style.
Sourcepub fn get_font_if_mutated(&mut self) -> Option<&mut Font>
pub fn get_font_if_mutated(&mut self) -> Option<&mut Font>
Gets a mutable view of the current Font style,
only if it’s been mutated before.
Sourcepub fn reset_font_struct(&mut self)
pub fn reset_font_struct(&mut self)
Reset the current Font style to its default value.
Sourcepub fn get_inherited_box(&self) -> &InheritedBox
pub fn get_inherited_box(&self) -> &InheritedBox
Gets an immutable view of the current InheritedBox style.
Sourcepub fn mutate_inherited_box(&mut self) -> &mut InheritedBox
pub fn mutate_inherited_box(&mut self) -> &mut InheritedBox
Gets a mutable view of the current InheritedBox style.
Sourcepub fn take_inherited_box(&mut self) -> UniqueArc<InheritedBox>
pub fn take_inherited_box(&mut self) -> UniqueArc<InheritedBox>
Gets a mutable view of the current InheritedBox style.
Sourcepub fn put_inherited_box(&mut self, s: UniqueArc<InheritedBox>)
pub fn put_inherited_box(&mut self, s: UniqueArc<InheritedBox>)
Gets a mutable view of the current InheritedBox style.
Sourcepub fn get_inherited_box_if_mutated(&mut self) -> Option<&mut InheritedBox>
pub fn get_inherited_box_if_mutated(&mut self) -> Option<&mut InheritedBox>
Gets a mutable view of the current InheritedBox style,
only if it’s been mutated before.
Sourcepub fn reset_inherited_box_struct(&mut self)
pub fn reset_inherited_box_struct(&mut self)
Reset the current InheritedBox style to its default value.
Sourcepub fn get_inherited_table(&self) -> &InheritedTable
pub fn get_inherited_table(&self) -> &InheritedTable
Gets an immutable view of the current InheritedTable style.
Sourcepub fn mutate_inherited_table(&mut self) -> &mut InheritedTable
pub fn mutate_inherited_table(&mut self) -> &mut InheritedTable
Gets a mutable view of the current InheritedTable style.
Sourcepub fn take_inherited_table(&mut self) -> UniqueArc<InheritedTable>
pub fn take_inherited_table(&mut self) -> UniqueArc<InheritedTable>
Gets a mutable view of the current InheritedTable style.
Sourcepub fn put_inherited_table(&mut self, s: UniqueArc<InheritedTable>)
pub fn put_inherited_table(&mut self, s: UniqueArc<InheritedTable>)
Gets a mutable view of the current InheritedTable style.
Sourcepub fn get_inherited_table_if_mutated(&mut self) -> Option<&mut InheritedTable>
pub fn get_inherited_table_if_mutated(&mut self) -> Option<&mut InheritedTable>
Gets a mutable view of the current InheritedTable style,
only if it’s been mutated before.
Sourcepub fn reset_inherited_table_struct(&mut self)
pub fn reset_inherited_table_struct(&mut self)
Reset the current InheritedTable style to its default value.
Sourcepub fn get_inherited_text(&self) -> &InheritedText
pub fn get_inherited_text(&self) -> &InheritedText
Gets an immutable view of the current InheritedText style.
Sourcepub fn mutate_inherited_text(&mut self) -> &mut InheritedText
pub fn mutate_inherited_text(&mut self) -> &mut InheritedText
Gets a mutable view of the current InheritedText style.
Sourcepub fn take_inherited_text(&mut self) -> UniqueArc<InheritedText>
pub fn take_inherited_text(&mut self) -> UniqueArc<InheritedText>
Gets a mutable view of the current InheritedText style.
Sourcepub fn put_inherited_text(&mut self, s: UniqueArc<InheritedText>)
pub fn put_inherited_text(&mut self, s: UniqueArc<InheritedText>)
Gets a mutable view of the current InheritedText style.
Sourcepub fn get_inherited_text_if_mutated(&mut self) -> Option<&mut InheritedText>
pub fn get_inherited_text_if_mutated(&mut self) -> Option<&mut InheritedText>
Gets a mutable view of the current InheritedText style,
only if it’s been mutated before.
Sourcepub fn reset_inherited_text_struct(&mut self)
pub fn reset_inherited_text_struct(&mut self)
Reset the current InheritedText style to its default value.
Sourcepub fn get_inherited_ui(&self) -> &InheritedUI
pub fn get_inherited_ui(&self) -> &InheritedUI
Gets an immutable view of the current InheritedUI style.
Sourcepub fn mutate_inherited_ui(&mut self) -> &mut InheritedUI
pub fn mutate_inherited_ui(&mut self) -> &mut InheritedUI
Gets a mutable view of the current InheritedUI style.
Sourcepub fn take_inherited_ui(&mut self) -> UniqueArc<InheritedUI>
pub fn take_inherited_ui(&mut self) -> UniqueArc<InheritedUI>
Gets a mutable view of the current InheritedUI style.
Sourcepub fn put_inherited_ui(&mut self, s: UniqueArc<InheritedUI>)
pub fn put_inherited_ui(&mut self, s: UniqueArc<InheritedUI>)
Gets a mutable view of the current InheritedUI style.
Sourcepub fn get_inherited_ui_if_mutated(&mut self) -> Option<&mut InheritedUI>
pub fn get_inherited_ui_if_mutated(&mut self) -> Option<&mut InheritedUI>
Gets a mutable view of the current InheritedUI style,
only if it’s been mutated before.
Sourcepub fn reset_inherited_ui_struct(&mut self)
pub fn reset_inherited_ui_struct(&mut self)
Reset the current InheritedUI style to its default value.
Sourcepub fn mutate_list(&mut self) -> &mut List
pub fn mutate_list(&mut self) -> &mut List
Gets a mutable view of the current List style.
Sourcepub fn get_list_if_mutated(&mut self) -> Option<&mut List>
pub fn get_list_if_mutated(&mut self) -> Option<&mut List>
Gets a mutable view of the current List style,
only if it’s been mutated before.
Sourcepub fn reset_list_struct(&mut self)
pub fn reset_list_struct(&mut self)
Reset the current List style to its default value.
Sourcepub fn get_margin(&self) -> &Margin
pub fn get_margin(&self) -> &Margin
Gets an immutable view of the current Margin style.
Sourcepub fn mutate_margin(&mut self) -> &mut Margin
pub fn mutate_margin(&mut self) -> &mut Margin
Gets a mutable view of the current Margin style.
Sourcepub fn take_margin(&mut self) -> UniqueArc<Margin>
pub fn take_margin(&mut self) -> UniqueArc<Margin>
Gets a mutable view of the current Margin style.
Sourcepub fn put_margin(&mut self, s: UniqueArc<Margin>)
pub fn put_margin(&mut self, s: UniqueArc<Margin>)
Gets a mutable view of the current Margin style.
Sourcepub fn get_margin_if_mutated(&mut self) -> Option<&mut Margin>
pub fn get_margin_if_mutated(&mut self) -> Option<&mut Margin>
Gets a mutable view of the current Margin style,
only if it’s been mutated before.
Sourcepub fn reset_margin_struct(&mut self)
pub fn reset_margin_struct(&mut self)
Reset the current Margin style to its default value.
Sourcepub fn get_outline(&self) -> &Outline
pub fn get_outline(&self) -> &Outline
Gets an immutable view of the current Outline style.
Sourcepub fn mutate_outline(&mut self) -> &mut Outline
pub fn mutate_outline(&mut self) -> &mut Outline
Gets a mutable view of the current Outline style.
Sourcepub fn take_outline(&mut self) -> UniqueArc<Outline>
pub fn take_outline(&mut self) -> UniqueArc<Outline>
Gets a mutable view of the current Outline style.
Sourcepub fn put_outline(&mut self, s: UniqueArc<Outline>)
pub fn put_outline(&mut self, s: UniqueArc<Outline>)
Gets a mutable view of the current Outline style.
Sourcepub fn get_outline_if_mutated(&mut self) -> Option<&mut Outline>
pub fn get_outline_if_mutated(&mut self) -> Option<&mut Outline>
Gets a mutable view of the current Outline style,
only if it’s been mutated before.
Sourcepub fn reset_outline_struct(&mut self)
pub fn reset_outline_struct(&mut self)
Reset the current Outline style to its default value.
Sourcepub fn get_padding(&self) -> &Padding
pub fn get_padding(&self) -> &Padding
Gets an immutable view of the current Padding style.
Sourcepub fn mutate_padding(&mut self) -> &mut Padding
pub fn mutate_padding(&mut self) -> &mut Padding
Gets a mutable view of the current Padding style.
Sourcepub fn take_padding(&mut self) -> UniqueArc<Padding>
pub fn take_padding(&mut self) -> UniqueArc<Padding>
Gets a mutable view of the current Padding style.
Sourcepub fn put_padding(&mut self, s: UniqueArc<Padding>)
pub fn put_padding(&mut self, s: UniqueArc<Padding>)
Gets a mutable view of the current Padding style.
Sourcepub fn get_padding_if_mutated(&mut self) -> Option<&mut Padding>
pub fn get_padding_if_mutated(&mut self) -> Option<&mut Padding>
Gets a mutable view of the current Padding style,
only if it’s been mutated before.
Sourcepub fn reset_padding_struct(&mut self)
pub fn reset_padding_struct(&mut self)
Reset the current Padding style to its default value.
Sourcepub fn get_position(&self) -> &Position
pub fn get_position(&self) -> &Position
Gets an immutable view of the current Position style.
Sourcepub fn mutate_position(&mut self) -> &mut Position
pub fn mutate_position(&mut self) -> &mut Position
Gets a mutable view of the current Position style.
Sourcepub fn take_position(&mut self) -> UniqueArc<Position>
pub fn take_position(&mut self) -> UniqueArc<Position>
Gets a mutable view of the current Position style.
Sourcepub fn put_position(&mut self, s: UniqueArc<Position>)
pub fn put_position(&mut self, s: UniqueArc<Position>)
Gets a mutable view of the current Position style.
Sourcepub fn get_position_if_mutated(&mut self) -> Option<&mut Position>
pub fn get_position_if_mutated(&mut self) -> Option<&mut Position>
Gets a mutable view of the current Position style,
only if it’s been mutated before.
Sourcepub fn reset_position_struct(&mut self)
pub fn reset_position_struct(&mut self)
Reset the current Position style to its default value.
Sourcepub fn mutate_svg(&mut self) -> &mut SVG
pub fn mutate_svg(&mut self) -> &mut SVG
Gets a mutable view of the current SVG style.
Sourcepub fn get_svg_if_mutated(&mut self) -> Option<&mut SVG>
pub fn get_svg_if_mutated(&mut self) -> Option<&mut SVG>
Gets a mutable view of the current SVG style,
only if it’s been mutated before.
Sourcepub fn reset_svg_struct(&mut self)
pub fn reset_svg_struct(&mut self)
Reset the current SVG style to its default value.
Sourcepub fn mutate_table(&mut self) -> &mut Table
pub fn mutate_table(&mut self) -> &mut Table
Gets a mutable view of the current Table style.
Sourcepub fn take_table(&mut self) -> UniqueArc<Table>
pub fn take_table(&mut self) -> UniqueArc<Table>
Gets a mutable view of the current Table style.
Sourcepub fn put_table(&mut self, s: UniqueArc<Table>)
pub fn put_table(&mut self, s: UniqueArc<Table>)
Gets a mutable view of the current Table style.
Sourcepub fn get_table_if_mutated(&mut self) -> Option<&mut Table>
pub fn get_table_if_mutated(&mut self) -> Option<&mut Table>
Gets a mutable view of the current Table style,
only if it’s been mutated before.
Sourcepub fn reset_table_struct(&mut self)
pub fn reset_table_struct(&mut self)
Reset the current Table style to its default value.
Sourcepub fn mutate_text(&mut self) -> &mut Text
pub fn mutate_text(&mut self) -> &mut Text
Gets a mutable view of the current Text style.
Sourcepub fn get_text_if_mutated(&mut self) -> Option<&mut Text>
pub fn get_text_if_mutated(&mut self) -> Option<&mut Text>
Gets a mutable view of the current Text style,
only if it’s been mutated before.
Sourcepub fn reset_text_struct(&mut self)
pub fn reset_text_struct(&mut self)
Reset the current Text style to its default value.
Sourcepub fn get_ui_if_mutated(&mut self) -> Option<&mut UI>
pub fn get_ui_if_mutated(&mut self) -> Option<&mut UI>
Gets a mutable view of the current UI style,
only if it’s been mutated before.
Sourcepub fn reset_ui_struct(&mut self)
pub fn reset_ui_struct(&mut self)
Reset the current UI style to its default value.
Sourcepub fn is_floating(&self) -> bool
pub fn is_floating(&self) -> bool
Returns whether this computed style represents a floated object.
Sourcepub fn is_absolutely_positioned(&self) -> bool
pub fn is_absolutely_positioned(&self) -> bool
Returns whether this computed style represents an absolutely-positioned object.
Sourcepub fn in_top_layer(&self) -> bool
pub fn in_top_layer(&self) -> bool
Whether this style has a top-layer style.
Sourcepub fn clear_modified_reset(&mut self)
pub fn clear_modified_reset(&mut self)
Clears the “have any reset structs been modified” flag.
Sourcepub fn modified_reset(&self) -> bool
pub fn modified_reset(&self) -> bool
Returns whether we have mutated any reset structs since the the last
time clear_modified_reset was called.
Sourcepub fn flags(&self) -> ComputedValueFlags
pub fn flags(&self) -> ComputedValueFlags
Return the current flags.
Sourcepub fn add_flags(&self, flag: ComputedValueFlags)
pub fn add_flags(&self, flag: ComputedValueFlags)
Add a flag to the current builder.
Sourcepub fn remove_flags(&self, flag: ComputedValueFlags)
pub fn remove_flags(&self, flag: ComputedValueFlags)
Removes a flag to the current builder.
Sourcepub fn build(self) -> Arc<ComputedValues>
pub fn build(self) -> Arc<ComputedValues>
Turns this StyleBuilder into a proper ComputedValues instance.
Sourcepub fn custom_properties(&self) -> &ComputedCustomProperties
pub fn custom_properties(&self) -> &ComputedCustomProperties
Get the custom properties map if necessary.
Sourcepub fn inherited_custom_properties(&self) -> &ComputedCustomProperties
pub fn inherited_custom_properties(&self) -> &ComputedCustomProperties
Get the inherited custom properties map.
Sourcepub fn inherited_writing_mode(&self) -> &WritingMode
pub fn inherited_writing_mode(&self) -> &WritingMode
Access to various information about our inherited styles. We don’t expose an inherited ComputedValues directly, because in the ::first-line case some of the inherited information needs to come from one ComputedValues instance and some from a different one. Inherited writing-mode.
Sourcepub fn effective_zoom(&self) -> Zoom
pub fn effective_zoom(&self) -> Zoom
The effective zoom value that we should multiply absolute lengths by.
Sourcepub fn specified_zoom(&self) -> Zoom
pub fn specified_zoom(&self) -> Zoom
The zoom specified on this element.
Sourcepub fn recompute_effective_zooms(&mut self)
pub fn recompute_effective_zooms(&mut self)
Computes effective_zoom and effective_zoom_for_inheritance based on the current style information.
fn zoom_for_inheritance( specified: Zoom, inherited_style: &ComputedValues, ) -> Zoom
Sourcepub fn get_parent_flags(&self) -> ComputedValueFlags
pub fn get_parent_flags(&self) -> ComputedValueFlags
The computed value flags of our parent.
Sourcepub fn calc_line_height(
&self,
device: &Device,
line_height_base: LineHeightBase,
writing_mode: WritingMode,
) -> NonNegativeLength
pub fn calc_line_height( &self, device: &Device, line_height_base: LineHeightBase, writing_mode: WritingMode, ) -> NonNegativeLength
Calculate the line height, given the currently resolved line-height and font.
Sourcepub fn get_parent_background(&self) -> &Background
pub fn get_parent_background(&self) -> &Background
And access to inherited style structs.
Gets our inherited Background. We don’t name these
accessors inherited_background because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_background
instead.
Sourcepub fn get_parent_border(&self) -> &Border
pub fn get_parent_border(&self) -> &Border
Gets our inherited Border. We don’t name these
accessors inherited_border because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_border
instead.
Sourcepub fn get_parent_box(&self) -> &Box
pub fn get_parent_box(&self) -> &Box
Gets our inherited Box. We don’t name these
accessors inherited_box because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_box
instead.
Sourcepub fn get_parent_column(&self) -> &Column
pub fn get_parent_column(&self) -> &Column
Gets our inherited Column. We don’t name these
accessors inherited_column because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_column
instead.
Sourcepub fn get_parent_counters(&self) -> &Counters
pub fn get_parent_counters(&self) -> &Counters
Gets our inherited Counters. We don’t name these
accessors inherited_counters because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_counters
instead.
Sourcepub fn get_parent_effects(&self) -> &Effects
pub fn get_parent_effects(&self) -> &Effects
Gets our inherited Effects. We don’t name these
accessors inherited_effects because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_effects
instead.
Sourcepub fn get_parent_font(&self) -> &Font
pub fn get_parent_font(&self) -> &Font
Gets our inherited Font. We don’t name these
accessors inherited_font because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_font
instead.
Sourcepub fn get_parent_inherited_box(&self) -> &InheritedBox
pub fn get_parent_inherited_box(&self) -> &InheritedBox
Gets our inherited InheritedBox. We don’t name these
accessors inherited_inherited_box because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_inherited_box
instead.
Sourcepub fn get_parent_inherited_table(&self) -> &InheritedTable
pub fn get_parent_inherited_table(&self) -> &InheritedTable
Gets our inherited InheritedTable. We don’t name these
accessors inherited_inherited_table because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_inherited_table
instead.
Sourcepub fn get_parent_inherited_text(&self) -> &InheritedText
pub fn get_parent_inherited_text(&self) -> &InheritedText
Gets our inherited InheritedText. We don’t name these
accessors inherited_inherited_text because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_inherited_text
instead.
Sourcepub fn get_parent_inherited_ui(&self) -> &InheritedUI
pub fn get_parent_inherited_ui(&self) -> &InheritedUI
Gets our inherited InheritedUI. We don’t name these
accessors inherited_inherited_ui because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_inherited_ui
instead.
Sourcepub fn get_parent_list(&self) -> &List
pub fn get_parent_list(&self) -> &List
Gets our inherited List. We don’t name these
accessors inherited_list because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_list
instead.
Sourcepub fn get_parent_margin(&self) -> &Margin
pub fn get_parent_margin(&self) -> &Margin
Gets our inherited Margin. We don’t name these
accessors inherited_margin because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_margin
instead.
Sourcepub fn get_parent_outline(&self) -> &Outline
pub fn get_parent_outline(&self) -> &Outline
Gets our inherited Outline. We don’t name these
accessors inherited_outline because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_outline
instead.
Sourcepub fn get_parent_padding(&self) -> &Padding
pub fn get_parent_padding(&self) -> &Padding
Gets our inherited Padding. We don’t name these
accessors inherited_padding because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_padding
instead.
Sourcepub fn get_parent_position(&self) -> &Position
pub fn get_parent_position(&self) -> &Position
Gets our inherited Position. We don’t name these
accessors inherited_position because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_position
instead.
Sourcepub fn get_parent_svg(&self) -> &SVG
pub fn get_parent_svg(&self) -> &SVG
Gets our inherited SVG. We don’t name these
accessors inherited_svg because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_svg
instead.
Sourcepub fn get_parent_table(&self) -> &Table
pub fn get_parent_table(&self) -> &Table
Gets our inherited Table. We don’t name these
accessors inherited_table because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_table
instead.
Sourcepub fn get_parent_text(&self) -> &Text
pub fn get_parent_text(&self) -> &Text
Gets our inherited Text. We don’t name these
accessors inherited_text because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_text
instead.
Sourcepub fn get_parent_ui(&self) -> &UI
pub fn get_parent_ui(&self) -> &UI
Gets our inherited UI. We don’t name these
accessors inherited_ui because we already
have things like “box” vs “inherited_box” as struct names. Do the
next-best thing and call them parent_ui
instead.
Auto Trait Implementations§
impl<'a> !Freeze for StyleBuilder<'a>
impl<'a> !RefUnwindSafe for StyleBuilder<'a>
impl<'a> Send for StyleBuilder<'a>
impl<'a> !Sync for StyleBuilder<'a>
impl<'a> Unpin for StyleBuilder<'a>
impl<'a> !UnwindSafe for StyleBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more