Struct style::properties::StyleBuilder
[−]
[src]
pub struct StyleBuilder<'a> { pub device: &'a Device, pub rules: Option<StrongRuleNode>, pub pseudo: Option<&'a PseudoElement>, pub writing_mode: WritingMode, pub flags: ComputedValueFlags, // some fields omitted }
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 Device
The device we're using to compute style.
This provides access to viewport unit ratios, etc.
rules: Option<StrongRuleNode>
The rule node representing the ordered list of rules matched for this node.
pseudo: Option<&'a PseudoElement>
The pseudo-element this style will represent.
writing_mode: WritingMode
The writing mode flags.
TODO(emilio): Make private.
flags: ComputedValueFlags
Flags for the computed value.
Methods
impl<'a> StyleBuilder<'a>
[src]
pub fn is_style_if_visited(&self) -> bool
[src]
Whether we're a visited style.
pub fn for_derived_style(
device: &'a Device,
style_to_derive_from: &'a ComputedValues,
parent_style: Option<&'a ComputedValues>,
pseudo: Option<&'a PseudoElement>
) -> Self
[src]
device: &'a Device,
style_to_derive_from: &'a ComputedValues,
parent_style: Option<&'a ComputedValues>,
pseudo: Option<&'a PseudoElement>
) -> Self
Creates a StyleBuilder holding only references to the structs of s
, in
order to create a derived style.
pub fn copy_reset_from(&mut self, style: &'a ComputedValues)
[src]
Copy the reset properties from style
.
pub fn inherit_background_color(&mut self)
[src]
Inherit background_color
from our parent style.
pub fn reset_background_color(&mut self)
[src]
Reset background_color
to the initial value.
pub fn set_background_color(&mut self, value: T)
[src]
Set the background_color
to the computed value value
.
pub fn inherit_background_image(&mut self)
[src]
Inherit background_image
from our parent style.
pub fn reset_background_image(&mut self)
[src]
Reset background_image
to the initial value.
pub fn inherit_background_position_x(&mut self)
[src]
Inherit background_position_x
from our parent style.
pub fn reset_background_position_x(&mut self)
[src]
Reset background_position_x
to the initial value.
pub fn inherit_background_position_y(&mut self)
[src]
Inherit background_position_y
from our parent style.
pub fn reset_background_position_y(&mut self)
[src]
Reset background_position_y
to the initial value.
pub fn inherit_background_repeat(&mut self)
[src]
Inherit background_repeat
from our parent style.
pub fn reset_background_repeat(&mut self)
[src]
Reset background_repeat
to the initial value.
pub fn inherit_background_attachment(&mut self)
[src]
Inherit background_attachment
from our parent style.
pub fn reset_background_attachment(&mut self)
[src]
Reset background_attachment
to the initial value.
pub fn inherit_background_clip(&mut self)
[src]
Inherit background_clip
from our parent style.
pub fn reset_background_clip(&mut self)
[src]
Reset background_clip
to the initial value.
pub fn inherit_background_origin(&mut self)
[src]
Inherit background_origin
from our parent style.
pub fn reset_background_origin(&mut self)
[src]
Reset background_origin
to the initial value.
pub fn inherit_background_size(&mut self)
[src]
Inherit background_size
from our parent style.
pub fn reset_background_size(&mut self)
[src]
Reset background_size
to the initial value.
pub fn inherit_border_top_color(&mut self)
[src]
Inherit border_top_color
from our parent style.
pub fn reset_border_top_color(&mut self)
[src]
Reset border_top_color
to the initial value.
pub fn set_border_top_color(&mut self, value: T)
[src]
Set the border_top_color
to the computed value value
.
pub fn inherit_border_top_style(&mut self)
[src]
Inherit border_top_style
from our parent style.
pub fn reset_border_top_style(&mut self)
[src]
Reset border_top_style
to the initial value.
pub fn set_border_top_style(&mut self, value: T)
[src]
Set the border_top_style
to the computed value value
.
pub fn inherit_border_top_width(&mut self)
[src]
Inherit border_top_width
from our parent style.
pub fn reset_border_top_width(&mut self)
[src]
Reset border_top_width
to the initial value.
pub fn set_border_top_width(&mut self, value: T)
[src]
Set the border_top_width
to the computed value value
.
pub fn inherit_border_left_color(&mut self)
[src]
Inherit border_left_color
from our parent style.
pub fn reset_border_left_color(&mut self)
[src]
Reset border_left_color
to the initial value.
pub fn set_border_left_color(&mut self, value: T)
[src]
Set the border_left_color
to the computed value value
.
pub fn inherit_border_left_style(&mut self)
[src]
Inherit border_left_style
from our parent style.
pub fn reset_border_left_style(&mut self)
[src]
Reset border_left_style
to the initial value.
pub fn set_border_left_style(&mut self, value: T)
[src]
Set the border_left_style
to the computed value value
.
pub fn inherit_border_left_width(&mut self)
[src]
Inherit border_left_width
from our parent style.
pub fn reset_border_left_width(&mut self)
[src]
Reset border_left_width
to the initial value.
pub fn set_border_left_width(&mut self, value: T)
[src]
Set the border_left_width
to the computed value value
.
pub fn inherit_border_bottom_color(&mut self)
[src]
Inherit border_bottom_color
from our parent style.
pub fn reset_border_bottom_color(&mut self)
[src]
Reset border_bottom_color
to the initial value.
pub fn set_border_bottom_color(&mut self, value: T)
[src]
Set the border_bottom_color
to the computed value value
.
pub fn inherit_border_bottom_style(&mut self)
[src]
Inherit border_bottom_style
from our parent style.
pub fn reset_border_bottom_style(&mut self)
[src]
Reset border_bottom_style
to the initial value.
pub fn set_border_bottom_style(&mut self, value: T)
[src]
Set the border_bottom_style
to the computed value value
.
pub fn inherit_border_bottom_width(&mut self)
[src]
Inherit border_bottom_width
from our parent style.
pub fn reset_border_bottom_width(&mut self)
[src]
Reset border_bottom_width
to the initial value.
pub fn set_border_bottom_width(&mut self, value: T)
[src]
Set the border_bottom_width
to the computed value value
.
pub fn inherit_border_right_color(&mut self)
[src]
Inherit border_right_color
from our parent style.
pub fn reset_border_right_color(&mut self)
[src]
Reset border_right_color
to the initial value.
pub fn set_border_right_color(&mut self, value: T)
[src]
Set the border_right_color
to the computed value value
.
pub fn inherit_border_right_style(&mut self)
[src]
Inherit border_right_style
from our parent style.
pub fn reset_border_right_style(&mut self)
[src]
Reset border_right_style
to the initial value.
pub fn set_border_right_style(&mut self, value: T)
[src]
Set the border_right_style
to the computed value value
.
pub fn inherit_border_right_width(&mut self)
[src]
Inherit border_right_width
from our parent style.
pub fn reset_border_right_width(&mut self)
[src]
Reset border_right_width
to the initial value.
pub fn set_border_right_width(&mut self, value: T)
[src]
Set the border_right_width
to the computed value value
.
pub fn inherit_border_block_start_color(&mut self)
[src]
Inherit border_block_start_color
from our parent style.
pub fn reset_border_block_start_color(&mut self)
[src]
Reset border_block_start_color
to the initial value.
pub fn set_border_block_start_color(&mut self, value: T)
[src]
Set the border_block_start_color
to the computed value value
.
pub fn inherit_border_block_start_style(&mut self)
[src]
Inherit border_block_start_style
from our parent style.
pub fn reset_border_block_start_style(&mut self)
[src]
Reset border_block_start_style
to the initial value.
pub fn set_border_block_start_style(&mut self, value: T)
[src]
Set the border_block_start_style
to the computed value value
.
pub fn inherit_border_block_start_width(&mut self)
[src]
Inherit border_block_start_width
from our parent style.
pub fn reset_border_block_start_width(&mut self)
[src]
Reset border_block_start_width
to the initial value.
pub fn set_border_block_start_width(&mut self, value: T)
[src]
Set the border_block_start_width
to the computed value value
.
pub fn inherit_border_block_end_color(&mut self)
[src]
Inherit border_block_end_color
from our parent style.
pub fn reset_border_block_end_color(&mut self)
[src]
Reset border_block_end_color
to the initial value.
pub fn set_border_block_end_color(&mut self, value: T)
[src]
Set the border_block_end_color
to the computed value value
.
pub fn inherit_border_block_end_style(&mut self)
[src]
Inherit border_block_end_style
from our parent style.
pub fn reset_border_block_end_style(&mut self)
[src]
Reset border_block_end_style
to the initial value.
pub fn set_border_block_end_style(&mut self, value: T)
[src]
Set the border_block_end_style
to the computed value value
.
pub fn inherit_border_block_end_width(&mut self)
[src]
Inherit border_block_end_width
from our parent style.
pub fn reset_border_block_end_width(&mut self)
[src]
Reset border_block_end_width
to the initial value.
pub fn set_border_block_end_width(&mut self, value: T)
[src]
Set the border_block_end_width
to the computed value value
.
pub fn inherit_border_inline_start_color(&mut self)
[src]
Inherit border_inline_start_color
from our parent style.
pub fn reset_border_inline_start_color(&mut self)
[src]
Reset border_inline_start_color
to the initial value.
pub fn set_border_inline_start_color(&mut self, value: T)
[src]
Set the border_inline_start_color
to the computed value value
.
pub fn inherit_border_inline_start_style(&mut self)
[src]
Inherit border_inline_start_style
from our parent style.
pub fn reset_border_inline_start_style(&mut self)
[src]
Reset border_inline_start_style
to the initial value.
pub fn set_border_inline_start_style(&mut self, value: T)
[src]
Set the border_inline_start_style
to the computed value value
.
pub fn inherit_border_inline_start_width(&mut self)
[src]
Inherit border_inline_start_width
from our parent style.
pub fn reset_border_inline_start_width(&mut self)
[src]
Reset border_inline_start_width
to the initial value.
pub fn set_border_inline_start_width(&mut self, value: T)
[src]
Set the border_inline_start_width
to the computed value value
.
pub fn inherit_border_inline_end_color(&mut self)
[src]
Inherit border_inline_end_color
from our parent style.
pub fn reset_border_inline_end_color(&mut self)
[src]
Reset border_inline_end_color
to the initial value.
pub fn set_border_inline_end_color(&mut self, value: T)
[src]
Set the border_inline_end_color
to the computed value value
.
pub fn inherit_border_inline_end_style(&mut self)
[src]
Inherit border_inline_end_style
from our parent style.
pub fn reset_border_inline_end_style(&mut self)
[src]
Reset border_inline_end_style
to the initial value.
pub fn set_border_inline_end_style(&mut self, value: T)
[src]
Set the border_inline_end_style
to the computed value value
.
pub fn inherit_border_inline_end_width(&mut self)
[src]
Inherit border_inline_end_width
from our parent style.
pub fn reset_border_inline_end_width(&mut self)
[src]
Reset border_inline_end_width
to the initial value.
pub fn set_border_inline_end_width(&mut self, value: T)
[src]
Set the border_inline_end_width
to the computed value value
.
pub fn inherit_border_top_left_radius(&mut self)
[src]
Inherit border_top_left_radius
from our parent style.
pub fn reset_border_top_left_radius(&mut self)
[src]
Reset border_top_left_radius
to the initial value.
pub fn set_border_top_left_radius(&mut self, value: T)
[src]
Set the border_top_left_radius
to the computed value value
.
pub fn inherit_border_top_right_radius(&mut self)
[src]
Inherit border_top_right_radius
from our parent style.
pub fn reset_border_top_right_radius(&mut self)
[src]
Reset border_top_right_radius
to the initial value.
pub fn set_border_top_right_radius(&mut self, value: T)
[src]
Set the border_top_right_radius
to the computed value value
.
pub fn inherit_border_bottom_right_radius(&mut self)
[src]
Inherit border_bottom_right_radius
from our parent style.
pub fn reset_border_bottom_right_radius(&mut self)
[src]
Reset border_bottom_right_radius
to the initial value.
pub fn set_border_bottom_right_radius(&mut self, value: T)
[src]
Set the border_bottom_right_radius
to the computed value value
.
pub fn inherit_border_bottom_left_radius(&mut self)
[src]
Inherit border_bottom_left_radius
from our parent style.
pub fn reset_border_bottom_left_radius(&mut self)
[src]
Reset border_bottom_left_radius
to the initial value.
pub fn set_border_bottom_left_radius(&mut self, value: T)
[src]
Set the border_bottom_left_radius
to the computed value value
.
pub fn inherit_border_image_source(&mut self)
[src]
Inherit border_image_source
from our parent style.
pub fn reset_border_image_source(&mut self)
[src]
Reset border_image_source
to the initial value.
pub fn set_border_image_source(&mut self, value: T)
[src]
Set the border_image_source
to the computed value value
.
pub fn inherit_border_image_outset(&mut self)
[src]
Inherit border_image_outset
from our parent style.
pub fn reset_border_image_outset(&mut self)
[src]
Reset border_image_outset
to the initial value.
pub fn set_border_image_outset(&mut self, value: T)
[src]
Set the border_image_outset
to the computed value value
.
pub fn inherit_border_image_repeat(&mut self)
[src]
Inherit border_image_repeat
from our parent style.
pub fn reset_border_image_repeat(&mut self)
[src]
Reset border_image_repeat
to the initial value.
pub fn set_border_image_repeat(&mut self, value: T)
[src]
Set the border_image_repeat
to the computed value value
.
pub fn inherit_border_image_width(&mut self)
[src]
Inherit border_image_width
from our parent style.
pub fn reset_border_image_width(&mut self)
[src]
Reset border_image_width
to the initial value.
pub fn set_border_image_width(&mut self, value: T)
[src]
Set the border_image_width
to the computed value value
.
pub fn inherit_border_image_slice(&mut self)
[src]
Inherit border_image_slice
from our parent style.
pub fn reset_border_image_slice(&mut self)
[src]
Reset border_image_slice
to the initial value.
pub fn set_border_image_slice(&mut self, value: T)
[src]
Set the border_image_slice
to the computed value value
.
pub fn inherit_display(&mut self)
[src]
Inherit display
from our parent style.
pub fn reset_display(&mut self)
[src]
Reset display
to the initial value.
pub fn set_display(&mut self, value: T)
[src]
Set the display
to the computed value value
.
pub fn inherit_position(&mut self)
[src]
Inherit position
from our parent style.
pub fn reset_position(&mut self)
[src]
Reset position
to the initial value.
pub fn set_position(&mut self, value: T)
[src]
Set the position
to the computed value value
.
pub fn inherit_float(&mut self)
[src]
Inherit float
from our parent style.
pub fn reset_float(&mut self)
[src]
Reset float
to the initial value.
pub fn set_float(&mut self, value: T)
[src]
Set the float
to the computed value value
.
pub fn inherit_clear(&mut self)
[src]
Inherit clear
from our parent style.
pub fn reset_clear(&mut self)
[src]
Reset clear
to the initial value.
pub fn set_clear(&mut self, value: T)
[src]
Set the clear
to the computed value value
.
pub fn inherit__servo_display_for_hypothetical_box(&mut self)
[src]
Inherit _servo_display_for_hypothetical_box
from our parent style.
pub fn reset__servo_display_for_hypothetical_box(&mut self)
[src]
Reset _servo_display_for_hypothetical_box
to the initial value.
pub fn set__servo_display_for_hypothetical_box(&mut self, value: T)
[src]
Set the _servo_display_for_hypothetical_box
to the computed value value
.
pub fn inherit_vertical_align(&mut self)
[src]
Inherit vertical_align
from our parent style.
pub fn reset_vertical_align(&mut self)
[src]
Reset vertical_align
to the initial value.
pub fn set_vertical_align(&mut self, value: T)
[src]
Set the vertical_align
to the computed value value
.
pub fn inherit__servo_overflow_clip_box(&mut self)
[src]
Inherit _servo_overflow_clip_box
from our parent style.
pub fn reset__servo_overflow_clip_box(&mut self)
[src]
Reset _servo_overflow_clip_box
to the initial value.
pub fn set__servo_overflow_clip_box(&mut self, value: T)
[src]
Set the _servo_overflow_clip_box
to the computed value value
.
pub fn inherit_overflow_x(&mut self)
[src]
Inherit overflow_x
from our parent style.
pub fn reset_overflow_x(&mut self)
[src]
Reset overflow_x
to the initial value.
pub fn set_overflow_x(&mut self, value: T)
[src]
Set the overflow_x
to the computed value value
.
pub fn inherit_overflow_y(&mut self)
[src]
Inherit overflow_y
from our parent style.
pub fn reset_overflow_y(&mut self)
[src]
Reset overflow_y
to the initial value.
pub fn set_overflow_y(&mut self, value: T)
[src]
Set the overflow_y
to the computed value value
.
pub fn inherit_transition_duration(&mut self)
[src]
Inherit transition_duration
from our parent style.
pub fn reset_transition_duration(&mut self)
[src]
Reset transition_duration
to the initial value.
pub fn inherit_transition_timing_function(&mut self)
[src]
Inherit transition_timing_function
from our parent style.
pub fn reset_transition_timing_function(&mut self)
[src]
Reset transition_timing_function
to the initial value.
pub fn inherit_transition_property(&mut self)
[src]
Inherit transition_property
from our parent style.
pub fn reset_transition_property(&mut self)
[src]
Reset transition_property
to the initial value.
pub fn inherit_transition_delay(&mut self)
[src]
Inherit transition_delay
from our parent style.
pub fn reset_transition_delay(&mut self)
[src]
Reset transition_delay
to the initial value.
pub fn inherit_animation_name(&mut self)
[src]
Inherit animation_name
from our parent style.
pub fn reset_animation_name(&mut self)
[src]
Reset animation_name
to the initial value.
pub fn inherit_animation_duration(&mut self)
[src]
Inherit animation_duration
from our parent style.
pub fn reset_animation_duration(&mut self)
[src]
Reset animation_duration
to the initial value.
pub fn inherit_animation_timing_function(&mut self)
[src]
Inherit animation_timing_function
from our parent style.
pub fn reset_animation_timing_function(&mut self)
[src]
Reset animation_timing_function
to the initial value.
pub fn inherit_animation_iteration_count(&mut self)
[src]
Inherit animation_iteration_count
from our parent style.
pub fn reset_animation_iteration_count(&mut self)
[src]
Reset animation_iteration_count
to the initial value.
pub fn inherit_animation_direction(&mut self)
[src]
Inherit animation_direction
from our parent style.
pub fn reset_animation_direction(&mut self)
[src]
Reset animation_direction
to the initial value.
pub fn inherit_animation_play_state(&mut self)
[src]
Inherit animation_play_state
from our parent style.
pub fn reset_animation_play_state(&mut self)
[src]
Reset animation_play_state
to the initial value.
pub fn inherit_animation_fill_mode(&mut self)
[src]
Inherit animation_fill_mode
from our parent style.
pub fn reset_animation_fill_mode(&mut self)
[src]
Reset animation_fill_mode
to the initial value.
pub fn inherit_animation_delay(&mut self)
[src]
Inherit animation_delay
from our parent style.
pub fn reset_animation_delay(&mut self)
[src]
Reset animation_delay
to the initial value.
pub fn inherit_transform(&mut self)
[src]
Inherit transform
from our parent style.
pub fn reset_transform(&mut self)
[src]
Reset transform
to the initial value.
pub fn set_transform(&mut self, value: T)
[src]
Set the transform
to the computed value value
.
pub fn inherit_perspective(&mut self)
[src]
Inherit perspective
from our parent style.
pub fn reset_perspective(&mut self)
[src]
Reset perspective
to the initial value.
pub fn set_perspective(&mut self, value: T)
[src]
Set the perspective
to the computed value value
.
pub fn inherit_perspective_origin(&mut self)
[src]
Inherit perspective_origin
from our parent style.
pub fn reset_perspective_origin(&mut self)
[src]
Reset perspective_origin
to the initial value.
pub fn set_perspective_origin(&mut self, value: T)
[src]
Set the perspective_origin
to the computed value value
.
pub fn inherit_backface_visibility(&mut self)
[src]
Inherit backface_visibility
from our parent style.
pub fn reset_backface_visibility(&mut self)
[src]
Reset backface_visibility
to the initial value.
pub fn set_backface_visibility(&mut self, value: T)
[src]
Set the backface_visibility
to the computed value value
.
pub fn inherit_transform_style(&mut self)
[src]
Inherit transform_style
from our parent style.
pub fn reset_transform_style(&mut self)
[src]
Reset transform_style
to the initial value.
pub fn set_transform_style(&mut self, value: T)
[src]
Set the transform_style
to the computed value value
.
pub fn inherit_transform_origin(&mut self)
[src]
Inherit transform_origin
from our parent style.
pub fn reset_transform_origin(&mut self)
[src]
Reset transform_origin
to the initial value.
pub fn set_transform_origin(&mut self, value: T)
[src]
Set the transform_origin
to the computed value value
.
pub fn inherit_color(&mut self)
[src]
Inherit color
from our parent style.
pub fn reset_color(&mut self)
[src]
Reset color
to the initial value.
pub fn set_color(&mut self, value: T)
[src]
Set the color
to the computed value value
.
pub fn inherit_column_width(&mut self)
[src]
Inherit column_width
from our parent style.
pub fn reset_column_width(&mut self)
[src]
Reset column_width
to the initial value.
pub fn set_column_width(&mut self, value: T)
[src]
Set the column_width
to the computed value value
.
pub fn inherit_column_count(&mut self)
[src]
Inherit column_count
from our parent style.
pub fn reset_column_count(&mut self)
[src]
Reset column_count
to the initial value.
pub fn set_column_count(&mut self, value: T)
[src]
Set the column_count
to the computed value value
.
pub fn inherit_column_gap(&mut self)
[src]
Inherit column_gap
from our parent style.
pub fn reset_column_gap(&mut self)
[src]
Reset column_gap
to the initial value.
pub fn set_column_gap(&mut self, value: T)
[src]
Set the column_gap
to the computed value value
.
pub fn inherit_content(&mut self)
[src]
Inherit content
from our parent style.
pub fn reset_content(&mut self)
[src]
Reset content
to the initial value.
pub fn set_content(&mut self, value: T)
[src]
Set the content
to the computed value value
.
pub fn inherit_counter_increment(&mut self)
[src]
Inherit counter_increment
from our parent style.
pub fn reset_counter_increment(&mut self)
[src]
Reset counter_increment
to the initial value.
pub fn set_counter_increment(&mut self, value: T)
[src]
Set the counter_increment
to the computed value value
.
pub fn inherit_counter_reset(&mut self)
[src]
Inherit counter_reset
from our parent style.
pub fn reset_counter_reset(&mut self)
[src]
Reset counter_reset
to the initial value.
pub fn set_counter_reset(&mut self, value: T)
[src]
Set the counter_reset
to the computed value value
.
pub fn inherit_opacity(&mut self)
[src]
Inherit opacity
from our parent style.
pub fn reset_opacity(&mut self)
[src]
Reset opacity
to the initial value.
pub fn set_opacity(&mut self, value: T)
[src]
Set the opacity
to the computed value value
.
pub fn inherit_box_shadow(&mut self)
[src]
Inherit box_shadow
from our parent style.
pub fn reset_box_shadow(&mut self)
[src]
Reset box_shadow
to the initial value.
pub fn inherit_clip(&mut self)
[src]
Inherit clip
from our parent style.
pub fn reset_clip(&mut self)
[src]
Reset clip
to the initial value.
pub fn set_clip(&mut self, value: T)
[src]
Set the clip
to the computed value value
.
pub fn inherit_filter(&mut self)
[src]
Inherit filter
from our parent style.
pub fn reset_filter(&mut self)
[src]
Reset filter
to the initial value.
pub fn inherit_mix_blend_mode(&mut self)
[src]
Inherit mix_blend_mode
from our parent style.
pub fn reset_mix_blend_mode(&mut self)
[src]
Reset mix_blend_mode
to the initial value.
pub fn set_mix_blend_mode(&mut self, value: T)
[src]
Set the mix_blend_mode
to the computed value value
.
pub fn inherit_font_family(&mut self)
[src]
Inherit font_family
from our parent style.
pub fn reset_font_family(&mut self)
[src]
Reset font_family
to the initial value.
pub fn set_font_family(&mut self, value: T)
[src]
Set the font_family
to the computed value value
.
pub fn inherit_font_style(&mut self)
[src]
Inherit font_style
from our parent style.
pub fn reset_font_style(&mut self)
[src]
Reset font_style
to the initial value.
pub fn set_font_style(&mut self, value: T)
[src]
Set the font_style
to the computed value value
.
pub fn inherit_font_variant_caps(&mut self)
[src]
Inherit font_variant_caps
from our parent style.
pub fn reset_font_variant_caps(&mut self)
[src]
Reset font_variant_caps
to the initial value.
pub fn set_font_variant_caps(&mut self, value: T)
[src]
Set the font_variant_caps
to the computed value value
.
pub fn inherit_font_weight(&mut self)
[src]
Inherit font_weight
from our parent style.
pub fn reset_font_weight(&mut self)
[src]
Reset font_weight
to the initial value.
pub fn set_font_weight(&mut self, value: T)
[src]
Set the font_weight
to the computed value value
.
pub fn inherit_font_stretch(&mut self)
[src]
Inherit font_stretch
from our parent style.
pub fn reset_font_stretch(&mut self)
[src]
Reset font_stretch
to the initial value.
pub fn set_font_stretch(&mut self, value: T)
[src]
Set the font_stretch
to the computed value value
.
pub fn inherit_visibility(&mut self)
[src]
Inherit visibility
from our parent style.
pub fn reset_visibility(&mut self)
[src]
Reset visibility
to the initial value.
pub fn set_visibility(&mut self, value: T)
[src]
Set the visibility
to the computed value value
.
pub fn inherit_writing_mode(&mut self)
[src]
Inherit writing_mode
from our parent style.
pub fn reset_writing_mode(&mut self)
[src]
Reset writing_mode
to the initial value.
pub fn set_writing_mode(&mut self, value: T)
[src]
Set the writing_mode
to the computed value value
.
pub fn inherit_direction(&mut self)
[src]
Inherit direction
from our parent style.
pub fn reset_direction(&mut self)
[src]
Reset direction
to the initial value.
pub fn set_direction(&mut self, value: T)
[src]
Set the direction
to the computed value value
.
pub fn inherit_image_rendering(&mut self)
[src]
Inherit image_rendering
from our parent style.
pub fn reset_image_rendering(&mut self)
[src]
Reset image_rendering
to the initial value.
pub fn set_image_rendering(&mut self, value: T)
[src]
Set the image_rendering
to the computed value value
.
pub fn inherit_border_collapse(&mut self)
[src]
Inherit border_collapse
from our parent style.
pub fn reset_border_collapse(&mut self)
[src]
Reset border_collapse
to the initial value.
pub fn set_border_collapse(&mut self, value: T)
[src]
Set the border_collapse
to the computed value value
.
pub fn inherit_empty_cells(&mut self)
[src]
Inherit empty_cells
from our parent style.
pub fn reset_empty_cells(&mut self)
[src]
Reset empty_cells
to the initial value.
pub fn set_empty_cells(&mut self, value: T)
[src]
Set the empty_cells
to the computed value value
.
pub fn inherit_caption_side(&mut self)
[src]
Inherit caption_side
from our parent style.
pub fn reset_caption_side(&mut self)
[src]
Reset caption_side
to the initial value.
pub fn set_caption_side(&mut self, value: T)
[src]
Set the caption_side
to the computed value value
.
pub fn inherit_border_spacing(&mut self)
[src]
Inherit border_spacing
from our parent style.
pub fn reset_border_spacing(&mut self)
[src]
Reset border_spacing
to the initial value.
pub fn set_border_spacing(&mut self, value: T)
[src]
Set the border_spacing
to the computed value value
.
pub fn inherit_line_height(&mut self)
[src]
Inherit line_height
from our parent style.
pub fn reset_line_height(&mut self)
[src]
Reset line_height
to the initial value.
pub fn set_line_height(&mut self, value: T)
[src]
Set the line_height
to the computed value value
.
pub fn inherit_text_transform(&mut self)
[src]
Inherit text_transform
from our parent style.
pub fn reset_text_transform(&mut self)
[src]
Reset text_transform
to the initial value.
pub fn set_text_transform(&mut self, value: T)
[src]
Set the text_transform
to the computed value value
.
pub fn inherit_text_indent(&mut self)
[src]
Inherit text_indent
from our parent style.
pub fn reset_text_indent(&mut self)
[src]
Reset text_indent
to the initial value.
pub fn set_text_indent(&mut self, value: T)
[src]
Set the text_indent
to the computed value value
.
pub fn inherit_overflow_wrap(&mut self)
[src]
Inherit overflow_wrap
from our parent style.
pub fn reset_overflow_wrap(&mut self)
[src]
Reset overflow_wrap
to the initial value.
pub fn set_overflow_wrap(&mut self, value: T)
[src]
Set the overflow_wrap
to the computed value value
.
pub fn inherit_word_break(&mut self)
[src]
Inherit word_break
from our parent style.
pub fn reset_word_break(&mut self)
[src]
Reset word_break
to the initial value.
pub fn set_word_break(&mut self, value: T)
[src]
Set the word_break
to the computed value value
.
pub fn inherit_text_justify(&mut self)
[src]
Inherit text_justify
from our parent style.
pub fn reset_text_justify(&mut self)
[src]
Reset text_justify
to the initial value.
pub fn set_text_justify(&mut self, value: T)
[src]
Set the text_justify
to the computed value value
.
pub fn inherit_text_align(&mut self)
[src]
Inherit text_align
from our parent style.
pub fn reset_text_align(&mut self)
[src]
Reset text_align
to the initial value.
pub fn set_text_align(&mut self, value: T)
[src]
Set the text_align
to the computed value value
.
pub fn inherit_letter_spacing(&mut self)
[src]
Inherit letter_spacing
from our parent style.
pub fn reset_letter_spacing(&mut self)
[src]
Reset letter_spacing
to the initial value.
pub fn set_letter_spacing(&mut self, value: T)
[src]
Set the letter_spacing
to the computed value value
.
pub fn inherit_word_spacing(&mut self)
[src]
Inherit word_spacing
from our parent style.
pub fn reset_word_spacing(&mut self)
[src]
Reset word_spacing
to the initial value.
pub fn set_word_spacing(&mut self, value: T)
[src]
Set the word_spacing
to the computed value value
.
pub fn inherit__servo_text_decorations_in_effect(&mut self)
[src]
Inherit _servo_text_decorations_in_effect
from our parent style.
pub fn reset__servo_text_decorations_in_effect(&mut self)
[src]
Reset _servo_text_decorations_in_effect
to the initial value.
pub fn set__servo_text_decorations_in_effect(&mut self, value: T)
[src]
Set the _servo_text_decorations_in_effect
to the computed value value
.
pub fn inherit_white_space(&mut self)
[src]
Inherit white_space
from our parent style.
pub fn reset_white_space(&mut self)
[src]
Reset white_space
to the initial value.
pub fn set_white_space(&mut self, value: T)
[src]
Set the white_space
to the computed value value
.
pub fn inherit_text_shadow(&mut self)
[src]
Inherit text_shadow
from our parent style.
pub fn reset_text_shadow(&mut self)
[src]
Reset text_shadow
to the initial value.
pub fn inherit_text_rendering(&mut self)
[src]
Inherit text_rendering
from our parent style.
pub fn reset_text_rendering(&mut self)
[src]
Reset text_rendering
to the initial value.
pub fn set_text_rendering(&mut self, value: T)
[src]
Set the text_rendering
to the computed value value
.
pub fn inherit_list_style_position(&mut self)
[src]
Inherit list_style_position
from our parent style.
pub fn reset_list_style_position(&mut self)
[src]
Reset list_style_position
to the initial value.
pub fn set_list_style_position(&mut self, value: T)
[src]
Set the list_style_position
to the computed value value
.
pub fn inherit_list_style_type(&mut self)
[src]
Inherit list_style_type
from our parent style.
pub fn reset_list_style_type(&mut self)
[src]
Reset list_style_type
to the initial value.
pub fn set_list_style_type(&mut self, value: T)
[src]
Set the list_style_type
to the computed value value
.
pub fn inherit_list_style_image(&mut self)
[src]
Inherit list_style_image
from our parent style.
pub fn reset_list_style_image(&mut self)
[src]
Reset list_style_image
to the initial value.
pub fn set_list_style_image(&mut self, value: T)
[src]
Set the list_style_image
to the computed value value
.
pub fn inherit_quotes(&mut self)
[src]
Inherit quotes
from our parent style.
pub fn reset_quotes(&mut self)
[src]
Reset quotes
to the initial value.
pub fn set_quotes(&mut self, value: T)
[src]
Set the quotes
to the computed value value
.
pub fn inherit_margin_top(&mut self)
[src]
Inherit margin_top
from our parent style.
pub fn reset_margin_top(&mut self)
[src]
Reset margin_top
to the initial value.
pub fn set_margin_top(&mut self, value: T)
[src]
Set the margin_top
to the computed value value
.
pub fn inherit_margin_left(&mut self)
[src]
Inherit margin_left
from our parent style.
pub fn reset_margin_left(&mut self)
[src]
Reset margin_left
to the initial value.
pub fn set_margin_left(&mut self, value: T)
[src]
Set the margin_left
to the computed value value
.
pub fn inherit_margin_bottom(&mut self)
[src]
Inherit margin_bottom
from our parent style.
pub fn reset_margin_bottom(&mut self)
[src]
Reset margin_bottom
to the initial value.
pub fn set_margin_bottom(&mut self, value: T)
[src]
Set the margin_bottom
to the computed value value
.
pub fn inherit_margin_right(&mut self)
[src]
Inherit margin_right
from our parent style.
pub fn reset_margin_right(&mut self)
[src]
Reset margin_right
to the initial value.
pub fn set_margin_right(&mut self, value: T)
[src]
Set the margin_right
to the computed value value
.
pub fn inherit_margin_block_start(&mut self)
[src]
Inherit margin_block_start
from our parent style.
pub fn reset_margin_block_start(&mut self)
[src]
Reset margin_block_start
to the initial value.
pub fn set_margin_block_start(&mut self, value: T)
[src]
Set the margin_block_start
to the computed value value
.
pub fn inherit_margin_block_end(&mut self)
[src]
Inherit margin_block_end
from our parent style.
pub fn reset_margin_block_end(&mut self)
[src]
Reset margin_block_end
to the initial value.
pub fn set_margin_block_end(&mut self, value: T)
[src]
Set the margin_block_end
to the computed value value
.
pub fn inherit_margin_inline_start(&mut self)
[src]
Inherit margin_inline_start
from our parent style.
pub fn reset_margin_inline_start(&mut self)
[src]
Reset margin_inline_start
to the initial value.
pub fn set_margin_inline_start(&mut self, value: T)
[src]
Set the margin_inline_start
to the computed value value
.
pub fn inherit_margin_inline_end(&mut self)
[src]
Inherit margin_inline_end
from our parent style.
pub fn reset_margin_inline_end(&mut self)
[src]
Reset margin_inline_end
to the initial value.
pub fn set_margin_inline_end(&mut self, value: T)
[src]
Set the margin_inline_end
to the computed value value
.
pub fn inherit_outline_color(&mut self)
[src]
Inherit outline_color
from our parent style.
pub fn reset_outline_color(&mut self)
[src]
Reset outline_color
to the initial value.
pub fn set_outline_color(&mut self, value: T)
[src]
Set the outline_color
to the computed value value
.
pub fn inherit_outline_style(&mut self)
[src]
Inherit outline_style
from our parent style.
pub fn reset_outline_style(&mut self)
[src]
Reset outline_style
to the initial value.
pub fn set_outline_style(&mut self, value: T)
[src]
Set the outline_style
to the computed value value
.
pub fn inherit_outline_width(&mut self)
[src]
Inherit outline_width
from our parent style.
pub fn reset_outline_width(&mut self)
[src]
Reset outline_width
to the initial value.
pub fn set_outline_width(&mut self, value: T)
[src]
Set the outline_width
to the computed value value
.
pub fn inherit_outline_offset(&mut self)
[src]
Inherit outline_offset
from our parent style.
pub fn reset_outline_offset(&mut self)
[src]
Reset outline_offset
to the initial value.
pub fn set_outline_offset(&mut self, value: T)
[src]
Set the outline_offset
to the computed value value
.
pub fn inherit_padding_top(&mut self)
[src]
Inherit padding_top
from our parent style.
pub fn reset_padding_top(&mut self)
[src]
Reset padding_top
to the initial value.
pub fn set_padding_top(&mut self, value: T)
[src]
Set the padding_top
to the computed value value
.
pub fn inherit_padding_left(&mut self)
[src]
Inherit padding_left
from our parent style.
pub fn reset_padding_left(&mut self)
[src]
Reset padding_left
to the initial value.
pub fn set_padding_left(&mut self, value: T)
[src]
Set the padding_left
to the computed value value
.
pub fn inherit_padding_bottom(&mut self)
[src]
Inherit padding_bottom
from our parent style.
pub fn reset_padding_bottom(&mut self)
[src]
Reset padding_bottom
to the initial value.
pub fn set_padding_bottom(&mut self, value: T)
[src]
Set the padding_bottom
to the computed value value
.
pub fn inherit_padding_right(&mut self)
[src]
Inherit padding_right
from our parent style.
pub fn reset_padding_right(&mut self)
[src]
Reset padding_right
to the initial value.
pub fn set_padding_right(&mut self, value: T)
[src]
Set the padding_right
to the computed value value
.
pub fn inherit_padding_block_start(&mut self)
[src]
Inherit padding_block_start
from our parent style.
pub fn reset_padding_block_start(&mut self)
[src]
Reset padding_block_start
to the initial value.
pub fn set_padding_block_start(&mut self, value: T)
[src]
Set the padding_block_start
to the computed value value
.
pub fn inherit_padding_block_end(&mut self)
[src]
Inherit padding_block_end
from our parent style.
pub fn reset_padding_block_end(&mut self)
[src]
Reset padding_block_end
to the initial value.
pub fn set_padding_block_end(&mut self, value: T)
[src]
Set the padding_block_end
to the computed value value
.
pub fn inherit_padding_inline_start(&mut self)
[src]
Inherit padding_inline_start
from our parent style.
pub fn reset_padding_inline_start(&mut self)
[src]
Reset padding_inline_start
to the initial value.
pub fn set_padding_inline_start(&mut self, value: T)
[src]
Set the padding_inline_start
to the computed value value
.
pub fn inherit_padding_inline_end(&mut self)
[src]
Inherit padding_inline_end
from our parent style.
pub fn reset_padding_inline_end(&mut self)
[src]
Reset padding_inline_end
to the initial value.
pub fn set_padding_inline_end(&mut self, value: T)
[src]
Set the padding_inline_end
to the computed value value
.
pub fn inherit_cursor(&mut self)
[src]
Inherit cursor
from our parent style.
pub fn reset_cursor(&mut self)
[src]
Reset cursor
to the initial value.
pub fn set_cursor(&mut self, value: T)
[src]
Set the cursor
to the computed value value
.
pub fn inherit_pointer_events(&mut self)
[src]
Inherit pointer_events
from our parent style.
pub fn reset_pointer_events(&mut self)
[src]
Reset pointer_events
to the initial value.
pub fn set_pointer_events(&mut self, value: T)
[src]
Set the pointer_events
to the computed value value
.
pub fn inherit_top(&mut self)
[src]
Inherit top
from our parent style.
pub fn reset_top(&mut self)
[src]
Reset top
to the initial value.
pub fn set_top(&mut self, value: T)
[src]
Set the top
to the computed value value
.
pub fn inherit_left(&mut self)
[src]
Inherit left
from our parent style.
pub fn reset_left(&mut self)
[src]
Reset left
to the initial value.
pub fn set_left(&mut self, value: T)
[src]
Set the left
to the computed value value
.
pub fn inherit_bottom(&mut self)
[src]
Inherit bottom
from our parent style.
pub fn reset_bottom(&mut self)
[src]
Reset bottom
to the initial value.
pub fn set_bottom(&mut self, value: T)
[src]
Set the bottom
to the computed value value
.
pub fn inherit_right(&mut self)
[src]
Inherit right
from our parent style.
pub fn reset_right(&mut self)
[src]
Reset right
to the initial value.
pub fn set_right(&mut self, value: T)
[src]
Set the right
to the computed value value
.
pub fn inherit_offset_block_start(&mut self)
[src]
Inherit offset_block_start
from our parent style.
pub fn reset_offset_block_start(&mut self)
[src]
Reset offset_block_start
to the initial value.
pub fn set_offset_block_start(&mut self, value: T)
[src]
Set the offset_block_start
to the computed value value
.
pub fn inherit_offset_block_end(&mut self)
[src]
Inherit offset_block_end
from our parent style.
pub fn reset_offset_block_end(&mut self)
[src]
Reset offset_block_end
to the initial value.
pub fn set_offset_block_end(&mut self, value: T)
[src]
Set the offset_block_end
to the computed value value
.
pub fn inherit_offset_inline_start(&mut self)
[src]
Inherit offset_inline_start
from our parent style.
pub fn reset_offset_inline_start(&mut self)
[src]
Reset offset_inline_start
to the initial value.
pub fn set_offset_inline_start(&mut self, value: T)
[src]
Set the offset_inline_start
to the computed value value
.
pub fn inherit_offset_inline_end(&mut self)
[src]
Inherit offset_inline_end
from our parent style.
pub fn reset_offset_inline_end(&mut self)
[src]
Reset offset_inline_end
to the initial value.
pub fn set_offset_inline_end(&mut self, value: T)
[src]
Set the offset_inline_end
to the computed value value
.
pub fn inherit_z_index(&mut self)
[src]
Inherit z_index
from our parent style.
pub fn reset_z_index(&mut self)
[src]
Reset z_index
to the initial value.
pub fn set_z_index(&mut self, value: T)
[src]
Set the z_index
to the computed value value
.
pub fn inherit_flex_direction(&mut self)
[src]
Inherit flex_direction
from our parent style.
pub fn reset_flex_direction(&mut self)
[src]
Reset flex_direction
to the initial value.
pub fn set_flex_direction(&mut self, value: T)
[src]
Set the flex_direction
to the computed value value
.
pub fn inherit_flex_wrap(&mut self)
[src]
Inherit flex_wrap
from our parent style.
pub fn reset_flex_wrap(&mut self)
[src]
Reset flex_wrap
to the initial value.
pub fn set_flex_wrap(&mut self, value: T)
[src]
Set the flex_wrap
to the computed value value
.
pub fn inherit_justify_content(&mut self)
[src]
Inherit justify_content
from our parent style.
pub fn reset_justify_content(&mut self)
[src]
Reset justify_content
to the initial value.
pub fn set_justify_content(&mut self, value: T)
[src]
Set the justify_content
to the computed value value
.
pub fn inherit_align_content(&mut self)
[src]
Inherit align_content
from our parent style.
pub fn reset_align_content(&mut self)
[src]
Reset align_content
to the initial value.
pub fn set_align_content(&mut self, value: T)
[src]
Set the align_content
to the computed value value
.
pub fn inherit_align_items(&mut self)
[src]
Inherit align_items
from our parent style.
pub fn reset_align_items(&mut self)
[src]
Reset align_items
to the initial value.
pub fn set_align_items(&mut self, value: T)
[src]
Set the align_items
to the computed value value
.
pub fn inherit_flex_grow(&mut self)
[src]
Inherit flex_grow
from our parent style.
pub fn reset_flex_grow(&mut self)
[src]
Reset flex_grow
to the initial value.
pub fn set_flex_grow(&mut self, value: T)
[src]
Set the flex_grow
to the computed value value
.
pub fn inherit_flex_shrink(&mut self)
[src]
Inherit flex_shrink
from our parent style.
pub fn reset_flex_shrink(&mut self)
[src]
Reset flex_shrink
to the initial value.
pub fn set_flex_shrink(&mut self, value: T)
[src]
Set the flex_shrink
to the computed value value
.
pub fn inherit_align_self(&mut self)
[src]
Inherit align_self
from our parent style.
pub fn reset_align_self(&mut self)
[src]
Reset align_self
to the initial value.
pub fn set_align_self(&mut self, value: T)
[src]
Set the align_self
to the computed value value
.
pub fn inherit_order(&mut self)
[src]
Inherit order
from our parent style.
pub fn reset_order(&mut self)
[src]
Reset order
to the initial value.
pub fn set_order(&mut self, value: T)
[src]
Set the order
to the computed value value
.
pub fn inherit_flex_basis(&mut self)
[src]
Inherit flex_basis
from our parent style.
pub fn reset_flex_basis(&mut self)
[src]
Reset flex_basis
to the initial value.
pub fn set_flex_basis(&mut self, value: T)
[src]
Set the flex_basis
to the computed value value
.
pub fn inherit_width(&mut self)
[src]
Inherit width
from our parent style.
pub fn reset_width(&mut self)
[src]
Reset width
to the initial value.
pub fn set_width(&mut self, value: T)
[src]
Set the width
to the computed value value
.
pub fn inherit_min_width(&mut self)
[src]
Inherit min_width
from our parent style.
pub fn reset_min_width(&mut self)
[src]
Reset min_width
to the initial value.
pub fn set_min_width(&mut self, value: T)
[src]
Set the min_width
to the computed value value
.
pub fn inherit_max_width(&mut self)
[src]
Inherit max_width
from our parent style.
pub fn reset_max_width(&mut self)
[src]
Reset max_width
to the initial value.
pub fn set_max_width(&mut self, value: T)
[src]
Set the max_width
to the computed value value
.
pub fn inherit_height(&mut self)
[src]
Inherit height
from our parent style.
pub fn reset_height(&mut self)
[src]
Reset height
to the initial value.
pub fn set_height(&mut self, value: T)
[src]
Set the height
to the computed value value
.
pub fn inherit_min_height(&mut self)
[src]
Inherit min_height
from our parent style.
pub fn reset_min_height(&mut self)
[src]
Reset min_height
to the initial value.
pub fn set_min_height(&mut self, value: T)
[src]
Set the min_height
to the computed value value
.
pub fn inherit_max_height(&mut self)
[src]
Inherit max_height
from our parent style.
pub fn reset_max_height(&mut self)
[src]
Reset max_height
to the initial value.
pub fn set_max_height(&mut self, value: T)
[src]
Set the max_height
to the computed value value
.
pub fn inherit_block_size(&mut self)
[src]
Inherit block_size
from our parent style.
pub fn reset_block_size(&mut self)
[src]
Reset block_size
to the initial value.
pub fn set_block_size(&mut self, value: T)
[src]
Set the block_size
to the computed value value
.
pub fn inherit_min_block_size(&mut self)
[src]
Inherit min_block_size
from our parent style.
pub fn reset_min_block_size(&mut self)
[src]
Reset min_block_size
to the initial value.
pub fn set_min_block_size(&mut self, value: T)
[src]
Set the min_block_size
to the computed value value
.
pub fn inherit_max_block_size(&mut self)
[src]
Inherit max_block_size
from our parent style.
pub fn reset_max_block_size(&mut self)
[src]
Reset max_block_size
to the initial value.
pub fn set_max_block_size(&mut self, value: T)
[src]
Set the max_block_size
to the computed value value
.
pub fn inherit_inline_size(&mut self)
[src]
Inherit inline_size
from our parent style.
pub fn reset_inline_size(&mut self)
[src]
Reset inline_size
to the initial value.
pub fn set_inline_size(&mut self, value: T)
[src]
Set the inline_size
to the computed value value
.
pub fn inherit_min_inline_size(&mut self)
[src]
Inherit min_inline_size
from our parent style.
pub fn reset_min_inline_size(&mut self)
[src]
Reset min_inline_size
to the initial value.
pub fn set_min_inline_size(&mut self, value: T)
[src]
Set the min_inline_size
to the computed value value
.
pub fn inherit_max_inline_size(&mut self)
[src]
Inherit max_inline_size
from our parent style.
pub fn reset_max_inline_size(&mut self)
[src]
Reset max_inline_size
to the initial value.
pub fn set_max_inline_size(&mut self, value: T)
[src]
Set the max_inline_size
to the computed value value
.
pub fn inherit_box_sizing(&mut self)
[src]
Inherit box_sizing
from our parent style.
pub fn reset_box_sizing(&mut self)
[src]
Reset box_sizing
to the initial value.
pub fn set_box_sizing(&mut self, value: T)
[src]
Set the box_sizing
to the computed value value
.
pub fn inherit_table_layout(&mut self)
[src]
Inherit table_layout
from our parent style.
pub fn reset_table_layout(&mut self)
[src]
Reset table_layout
to the initial value.
pub fn set_table_layout(&mut self, value: T)
[src]
Set the table_layout
to the computed value value
.
pub fn inherit_text_overflow(&mut self)
[src]
Inherit text_overflow
from our parent style.
pub fn reset_text_overflow(&mut self)
[src]
Reset text_overflow
to the initial value.
pub fn set_text_overflow(&mut self, value: T)
[src]
Set the text_overflow
to the computed value value
.
pub fn inherit_unicode_bidi(&mut self)
[src]
Inherit unicode_bidi
from our parent style.
pub fn reset_unicode_bidi(&mut self)
[src]
Reset unicode_bidi
to the initial value.
pub fn set_unicode_bidi(&mut self, value: T)
[src]
Set the unicode_bidi
to the computed value value
.
pub fn inherit_text_decoration_line(&mut self)
[src]
Inherit text_decoration_line
from our parent style.
pub fn reset_text_decoration_line(&mut self)
[src]
Reset text_decoration_line
to the initial value.
pub fn set_text_decoration_line(&mut self, value: T)
[src]
Set the text_decoration_line
to the computed value value
.
pub fn for_inheritance(
device: &'a Device,
parent: &'a ComputedValues,
pseudo: Option<&'a PseudoElement>
) -> Self
[src]
device: &'a Device,
parent: &'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.
pub fn has_visited_style(&self) -> bool
[src]
Returns whether we have a visited style.
pub fn is_pseudo_element(&self) -> bool
[src]
Returns whether we're a pseudo-elements style.
pub fn default_style(&self) -> &'a ComputedValues
[src]
Returns the style we're getting reset properties from.
pub fn get_background(&self) -> &Background
[src]
Gets an immutable view of the current Background
style.
pub fn mutate_background(&mut self) -> &mut Background
[src]
Gets a mutable view of the current Background
style.
pub fn take_background(&mut self) -> UniqueArc<Background>
[src]
Gets a mutable view of the current Background
style.
pub fn put_background(&mut self, s: UniqueArc<Background>)
[src]
Gets a mutable view of the current Background
style.
pub fn get_background_if_mutated(&mut self) -> Option<&mut Background>
[src]
Gets a mutable view of the current Background
style,
only if it's been mutated before.
pub fn reset_background_struct(&mut self)
[src]
Reset the current Background
style to its default value.
pub fn get_border(&self) -> &Border
[src]
Gets an immutable view of the current Border
style.
pub fn mutate_border(&mut self) -> &mut Border
[src]
Gets a mutable view of the current Border
style.
pub fn take_border(&mut self) -> UniqueArc<Border>
[src]
Gets a mutable view of the current Border
style.
pub fn put_border(&mut self, s: UniqueArc<Border>)
[src]
Gets a mutable view of the current Border
style.
pub fn get_border_if_mutated(&mut self) -> Option<&mut Border>
[src]
Gets a mutable view of the current Border
style,
only if it's been mutated before.
pub fn reset_border_struct(&mut self)
[src]
Reset the current Border
style to its default value.
pub fn get_box(&self) -> &Box
[src]
Gets an immutable view of the current Box
style.
pub fn mutate_box(&mut self) -> &mut Box
[src]
Gets a mutable view of the current Box
style.
pub fn take_box(&mut self) -> UniqueArc<Box>
[src]
Gets a mutable view of the current Box
style.
pub fn put_box(&mut self, s: UniqueArc<Box>)
[src]
Gets a mutable view of the current Box
style.
pub fn get_box_if_mutated(&mut self) -> Option<&mut Box>
[src]
Gets a mutable view of the current Box
style,
only if it's been mutated before.
pub fn reset_box_struct(&mut self)
[src]
Reset the current Box
style to its default value.
pub fn get_color(&self) -> &Color
[src]
Gets an immutable view of the current Color
style.
pub fn mutate_color(&mut self) -> &mut Color
[src]
Gets a mutable view of the current Color
style.
pub fn take_color(&mut self) -> UniqueArc<Color>
[src]
Gets a mutable view of the current Color
style.
pub fn put_color(&mut self, s: UniqueArc<Color>)
[src]
Gets a mutable view of the current Color
style.
pub fn get_color_if_mutated(&mut self) -> Option<&mut Color>
[src]
Gets a mutable view of the current Color
style,
only if it's been mutated before.
pub fn reset_color_struct(&mut self)
[src]
Reset the current Color
style to its default value.
pub fn get_column(&self) -> &Column
[src]
Gets an immutable view of the current Column
style.
pub fn mutate_column(&mut self) -> &mut Column
[src]
Gets a mutable view of the current Column
style.
pub fn take_column(&mut self) -> UniqueArc<Column>
[src]
Gets a mutable view of the current Column
style.
pub fn put_column(&mut self, s: UniqueArc<Column>)
[src]
Gets a mutable view of the current Column
style.
pub fn get_column_if_mutated(&mut self) -> Option<&mut Column>
[src]
Gets a mutable view of the current Column
style,
only if it's been mutated before.
pub fn reset_column_struct(&mut self)
[src]
Reset the current Column
style to its default value.
pub fn get_counters(&self) -> &Counters
[src]
Gets an immutable view of the current Counters
style.
pub fn mutate_counters(&mut self) -> &mut Counters
[src]
Gets a mutable view of the current Counters
style.
pub fn take_counters(&mut self) -> UniqueArc<Counters>
[src]
Gets a mutable view of the current Counters
style.
pub fn put_counters(&mut self, s: UniqueArc<Counters>)
[src]
Gets a mutable view of the current Counters
style.
pub fn get_counters_if_mutated(&mut self) -> Option<&mut Counters>
[src]
Gets a mutable view of the current Counters
style,
only if it's been mutated before.
pub fn reset_counters_struct(&mut self)
[src]
Reset the current Counters
style to its default value.
pub fn get_effects(&self) -> &Effects
[src]
Gets an immutable view of the current Effects
style.
pub fn mutate_effects(&mut self) -> &mut Effects
[src]
Gets a mutable view of the current Effects
style.
pub fn take_effects(&mut self) -> UniqueArc<Effects>
[src]
Gets a mutable view of the current Effects
style.
pub fn put_effects(&mut self, s: UniqueArc<Effects>)
[src]
Gets a mutable view of the current Effects
style.
pub fn get_effects_if_mutated(&mut self) -> Option<&mut Effects>
[src]
Gets a mutable view of the current Effects
style,
only if it's been mutated before.
pub fn reset_effects_struct(&mut self)
[src]
Reset the current Effects
style to its default value.
pub fn get_font(&self) -> &Font
[src]
Gets an immutable view of the current Font
style.
pub fn mutate_font(&mut self) -> &mut Font
[src]
Gets a mutable view of the current Font
style.
pub fn take_font(&mut self) -> UniqueArc<Font>
[src]
Gets a mutable view of the current Font
style.
pub fn put_font(&mut self, s: UniqueArc<Font>)
[src]
Gets a mutable view of the current Font
style.
pub fn get_font_if_mutated(&mut self) -> Option<&mut Font>
[src]
Gets a mutable view of the current Font
style,
only if it's been mutated before.
pub fn reset_font_struct(&mut self)
[src]
Reset the current Font
style to its default value.
pub fn get_inheritedbox(&self) -> &InheritedBox
[src]
Gets an immutable view of the current InheritedBox
style.
pub fn mutate_inheritedbox(&mut self) -> &mut InheritedBox
[src]
Gets a mutable view of the current InheritedBox
style.
pub fn take_inheritedbox(&mut self) -> UniqueArc<InheritedBox>
[src]
Gets a mutable view of the current InheritedBox
style.
pub fn put_inheritedbox(&mut self, s: UniqueArc<InheritedBox>)
[src]
Gets a mutable view of the current InheritedBox
style.
pub fn get_inheritedbox_if_mutated(&mut self) -> Option<&mut InheritedBox>
[src]
Gets a mutable view of the current InheritedBox
style,
only if it's been mutated before.
pub fn reset_inheritedbox_struct(&mut self)
[src]
Reset the current InheritedBox
style to its default value.
pub fn get_inheritedtable(&self) -> &InheritedTable
[src]
Gets an immutable view of the current InheritedTable
style.
pub fn mutate_inheritedtable(&mut self) -> &mut InheritedTable
[src]
Gets a mutable view of the current InheritedTable
style.
pub fn take_inheritedtable(&mut self) -> UniqueArc<InheritedTable>
[src]
Gets a mutable view of the current InheritedTable
style.
pub fn put_inheritedtable(&mut self, s: UniqueArc<InheritedTable>)
[src]
Gets a mutable view of the current InheritedTable
style.
pub fn get_inheritedtable_if_mutated(&mut self) -> Option<&mut InheritedTable>
[src]
Gets a mutable view of the current InheritedTable
style,
only if it's been mutated before.
pub fn reset_inheritedtable_struct(&mut self)
[src]
Reset the current InheritedTable
style to its default value.
pub fn get_inheritedtext(&self) -> &InheritedText
[src]
Gets an immutable view of the current InheritedText
style.
pub fn mutate_inheritedtext(&mut self) -> &mut InheritedText
[src]
Gets a mutable view of the current InheritedText
style.
pub fn take_inheritedtext(&mut self) -> UniqueArc<InheritedText>
[src]
Gets a mutable view of the current InheritedText
style.
pub fn put_inheritedtext(&mut self, s: UniqueArc<InheritedText>)
[src]
Gets a mutable view of the current InheritedText
style.
pub fn get_inheritedtext_if_mutated(&mut self) -> Option<&mut InheritedText>
[src]
Gets a mutable view of the current InheritedText
style,
only if it's been mutated before.
pub fn reset_inheritedtext_struct(&mut self)
[src]
Reset the current InheritedText
style to its default value.
pub fn get_list(&self) -> &List
[src]
Gets an immutable view of the current List
style.
pub fn mutate_list(&mut self) -> &mut List
[src]
Gets a mutable view of the current List
style.
pub fn take_list(&mut self) -> UniqueArc<List>
[src]
Gets a mutable view of the current List
style.
pub fn put_list(&mut self, s: UniqueArc<List>)
[src]
Gets a mutable view of the current List
style.
pub fn get_list_if_mutated(&mut self) -> Option<&mut List>
[src]
Gets a mutable view of the current List
style,
only if it's been mutated before.
pub fn reset_list_struct(&mut self)
[src]
Reset the current List
style to its default value.
pub fn get_margin(&self) -> &Margin
[src]
Gets an immutable view of the current Margin
style.
pub fn mutate_margin(&mut self) -> &mut Margin
[src]
Gets a mutable view of the current Margin
style.
pub fn take_margin(&mut self) -> UniqueArc<Margin>
[src]
Gets a mutable view of the current Margin
style.
pub fn put_margin(&mut self, s: UniqueArc<Margin>)
[src]
Gets a mutable view of the current Margin
style.
pub fn get_margin_if_mutated(&mut self) -> Option<&mut Margin>
[src]
Gets a mutable view of the current Margin
style,
only if it's been mutated before.
pub fn reset_margin_struct(&mut self)
[src]
Reset the current Margin
style to its default value.
pub fn get_outline(&self) -> &Outline
[src]
Gets an immutable view of the current Outline
style.
pub fn mutate_outline(&mut self) -> &mut Outline
[src]
Gets a mutable view of the current Outline
style.
pub fn take_outline(&mut self) -> UniqueArc<Outline>
[src]
Gets a mutable view of the current Outline
style.
pub fn put_outline(&mut self, s: UniqueArc<Outline>)
[src]
Gets a mutable view of the current Outline
style.
pub fn get_outline_if_mutated(&mut self) -> Option<&mut Outline>
[src]
Gets a mutable view of the current Outline
style,
only if it's been mutated before.
pub fn reset_outline_struct(&mut self)
[src]
Reset the current Outline
style to its default value.
pub fn get_padding(&self) -> &Padding
[src]
Gets an immutable view of the current Padding
style.
pub fn mutate_padding(&mut self) -> &mut Padding
[src]
Gets a mutable view of the current Padding
style.
pub fn take_padding(&mut self) -> UniqueArc<Padding>
[src]
Gets a mutable view of the current Padding
style.
pub fn put_padding(&mut self, s: UniqueArc<Padding>)
[src]
Gets a mutable view of the current Padding
style.
pub fn get_padding_if_mutated(&mut self) -> Option<&mut Padding>
[src]
Gets a mutable view of the current Padding
style,
only if it's been mutated before.
pub fn reset_padding_struct(&mut self)
[src]
Reset the current Padding
style to its default value.
pub fn get_pointing(&self) -> &Pointing
[src]
Gets an immutable view of the current Pointing
style.
pub fn mutate_pointing(&mut self) -> &mut Pointing
[src]
Gets a mutable view of the current Pointing
style.
pub fn take_pointing(&mut self) -> UniqueArc<Pointing>
[src]
Gets a mutable view of the current Pointing
style.
pub fn put_pointing(&mut self, s: UniqueArc<Pointing>)
[src]
Gets a mutable view of the current Pointing
style.
pub fn get_pointing_if_mutated(&mut self) -> Option<&mut Pointing>
[src]
Gets a mutable view of the current Pointing
style,
only if it's been mutated before.
pub fn reset_pointing_struct(&mut self)
[src]
Reset the current Pointing
style to its default value.
pub fn get_position(&self) -> &Position
[src]
Gets an immutable view of the current Position
style.
pub fn mutate_position(&mut self) -> &mut Position
[src]
Gets a mutable view of the current Position
style.
pub fn take_position(&mut self) -> UniqueArc<Position>
[src]
Gets a mutable view of the current Position
style.
pub fn put_position(&mut self, s: UniqueArc<Position>)
[src]
Gets a mutable view of the current Position
style.
pub fn get_position_if_mutated(&mut self) -> Option<&mut Position>
[src]
Gets a mutable view of the current Position
style,
only if it's been mutated before.
pub fn reset_position_struct(&mut self)
[src]
Reset the current Position
style to its default value.
pub fn get_table(&self) -> &Table
[src]
Gets an immutable view of the current Table
style.
pub fn mutate_table(&mut self) -> &mut Table
[src]
Gets a mutable view of the current Table
style.
pub fn take_table(&mut self) -> UniqueArc<Table>
[src]
Gets a mutable view of the current Table
style.
pub fn put_table(&mut self, s: UniqueArc<Table>)
[src]
Gets a mutable view of the current Table
style.
pub fn get_table_if_mutated(&mut self) -> Option<&mut Table>
[src]
Gets a mutable view of the current Table
style,
only if it's been mutated before.
pub fn reset_table_struct(&mut self)
[src]
Reset the current Table
style to its default value.
pub fn get_text(&self) -> &Text
[src]
Gets an immutable view of the current Text
style.
pub fn mutate_text(&mut self) -> &mut Text
[src]
Gets a mutable view of the current Text
style.
pub fn take_text(&mut self) -> UniqueArc<Text>
[src]
Gets a mutable view of the current Text
style.
pub fn put_text(&mut self, s: UniqueArc<Text>)
[src]
Gets a mutable view of the current Text
style.
pub fn get_text_if_mutated(&mut self) -> Option<&mut Text>
[src]
Gets a mutable view of the current Text
style,
only if it's been mutated before.
pub fn reset_text_struct(&mut self)
[src]
Reset the current Text
style to its default value.
pub fn floated(&self) -> bool
[src]
Returns whether this computed style represents a floated object.
pub fn out_of_flow_positioned(&self) -> bool
[src]
Returns whether this computed style represents an out of flow-positioned object.
pub fn in_top_layer(&self) -> bool
[src]
Whether this style has a top-layer style. That's implemented in Gecko via the -moz-top-layer property, but servo doesn't have any concept of a top layer (yet, it's needed for fullscreen).
pub fn build(self) -> Arc<ComputedValues>
[src]
Turns this StyleBuilder
into a proper ComputedValues
instance.
pub fn inherited_writing_mode(&self) -> &WritingMode
[src]
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.
pub fn inherited_flags(&self) -> &ComputedValueFlags
[src]
Inherited style flags.
pub fn get_parent_background(&self) -> &Background
[src]
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.
pub fn get_parent_border(&self) -> &Border
[src]
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.
pub fn get_parent_box(&self) -> &Box
[src]
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.
pub fn get_parent_color(&self) -> &Color
[src]
Gets our inherited Color
. We don't name these
accessors inherited_color
because we already
have things like "box" vs "inherited_box" as struct names. Do the
next-best thing and call them parent_color
instead.
pub fn get_parent_column(&self) -> &Column
[src]
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.
pub fn get_parent_counters(&self) -> &Counters
[src]
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.
pub fn get_parent_effects(&self) -> &Effects
[src]
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.
pub fn get_parent_font(&self) -> &Font
[src]
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.
pub fn get_parent_inheritedbox(&self) -> &InheritedBox
[src]
Gets our inherited InheritedBox
. We don't name these
accessors inherited_inheritedbox
because we already
have things like "box" vs "inherited_box" as struct names. Do the
next-best thing and call them parent_inheritedbox
instead.
pub fn get_parent_inheritedtable(&self) -> &InheritedTable
[src]
Gets our inherited InheritedTable
. We don't name these
accessors inherited_inheritedtable
because we already
have things like "box" vs "inherited_box" as struct names. Do the
next-best thing and call them parent_inheritedtable
instead.
pub fn get_parent_inheritedtext(&self) -> &InheritedText
[src]
Gets our inherited InheritedText
. We don't name these
accessors inherited_inheritedtext
because we already
have things like "box" vs "inherited_box" as struct names. Do the
next-best thing and call them parent_inheritedtext
instead.
pub fn get_parent_list(&self) -> &List
[src]
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.
pub fn get_parent_margin(&self) -> &Margin
[src]
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.
pub fn get_parent_outline(&self) -> &Outline
[src]
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.
pub fn get_parent_padding(&self) -> &Padding
[src]
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.
pub fn get_parent_pointing(&self) -> &Pointing
[src]
Gets our inherited Pointing
. We don't name these
accessors inherited_pointing
because we already
have things like "box" vs "inherited_box" as struct names. Do the
next-best thing and call them parent_pointing
instead.
pub fn get_parent_position(&self) -> &Position
[src]
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.
pub fn get_parent_table(&self) -> &Table
[src]
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.
pub fn get_parent_text(&self) -> &Text
[src]
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.