pub struct ComputedValuesInner {
Show 25 fields background: Arc<Background>, border: Arc<Border>, box_: Arc<Box>, column: Arc<Column>, counters: Arc<Counters>, effects: Arc<Effects>, font: Arc<Font>, inherited_box: Arc<InheritedBox>, inherited_table: Arc<InheritedTable>, inherited_text: Arc<InheritedText>, inherited_ui: Arc<InheritedUI>, list: Arc<List>, margin: Arc<Margin>, outline: Arc<Outline>, padding: Arc<Padding>, position: Arc<Position>, table: Arc<Table>, text: Arc<Text>, ui: Arc<UI>, custom_properties: ComputedCustomProperties, pub writing_mode: WritingMode, pub effective_zoom: Zoom, pub flags: ComputedValueFlags, pub rules: Option<StrongRuleNode>, visited_style: Option<Arc<ComputedValues>>,
}
Expand description

Actual data of ComputedValues, to match up with Gecko

Fields§

§background: Arc<Background>§border: Arc<Border>§box_: Arc<Box>§column: Arc<Column>§counters: Arc<Counters>§effects: Arc<Effects>§font: Arc<Font>§inherited_box: Arc<InheritedBox>§inherited_table: Arc<InheritedTable>§inherited_text: Arc<InheritedText>§inherited_ui: Arc<InheritedUI>§list: Arc<List>§margin: Arc<Margin>§outline: Arc<Outline>§padding: Arc<Padding>§position: Arc<Position>§table: Arc<Table>§text: Arc<Text>§ui: Arc<UI>§custom_properties: ComputedCustomProperties§writing_mode: WritingMode

The writing mode of this computed values struct.

§effective_zoom: Zoom

The effective zoom value.

§flags: ComputedValueFlags

A set of flags we use to store misc information regarding this style.

§rules: Option<StrongRuleNode>

The rule node representing the ordered list of rules matched for this node. Can be None for default values and text nodes. This is essentially an optimization to avoid referencing the root rule node.

§visited_style: Option<Arc<ComputedValues>>

The element’s computed values 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.

Implementations§

source§

impl ComputedValuesInner

source

pub fn visited_style(&self) -> Option<&ComputedValues>

Returns the visited style, if any.

source

pub fn clone_background(&self) -> Arc<Background>

Clone the Background struct.

source

pub fn get_background(&self) -> &Background

Get a immutable reference to the Background struct.

source

pub fn mutate_background(&mut self) -> &mut Background

Get a mutable reference to the Background struct.

source

pub fn clone_border(&self) -> Arc<Border>

Clone the Border struct.

source

pub fn get_border(&self) -> &Border

Get a immutable reference to the Border struct.

source

pub fn mutate_border(&mut self) -> &mut Border

Get a mutable reference to the Border struct.

source

pub fn clone_box(&self) -> Arc<Box>

Clone the Box struct.

source

pub fn get_box(&self) -> &Box

Get a immutable reference to the Box struct.

source

pub fn mutate_box(&mut self) -> &mut Box

Get a mutable reference to the Box struct.

source

pub fn clone_column(&self) -> Arc<Column>

Clone the Column struct.

source

pub fn get_column(&self) -> &Column

Get a immutable reference to the Column struct.

source

pub fn mutate_column(&mut self) -> &mut Column

Get a mutable reference to the Column struct.

source

pub fn clone_counters(&self) -> Arc<Counters>

Clone the Counters struct.

source

pub fn get_counters(&self) -> &Counters

Get a immutable reference to the Counters struct.

source

pub fn mutate_counters(&mut self) -> &mut Counters

Get a mutable reference to the Counters struct.

source

pub fn clone_effects(&self) -> Arc<Effects>

Clone the Effects struct.

source

pub fn get_effects(&self) -> &Effects

Get a immutable reference to the Effects struct.

source

pub fn mutate_effects(&mut self) -> &mut Effects

Get a mutable reference to the Effects struct.

source

pub fn clone_font(&self) -> Arc<Font>

Clone the Font struct.

source

pub fn get_font(&self) -> &Font

Get a immutable reference to the Font struct.

source

pub fn mutate_font(&mut self) -> &mut Font

Get a mutable reference to the Font struct.

source

pub fn clone_inherited_box(&self) -> Arc<InheritedBox>

Clone the InheritedBox struct.

source

pub fn get_inherited_box(&self) -> &InheritedBox

Get a immutable reference to the InheritedBox struct.

source

pub fn mutate_inherited_box(&mut self) -> &mut InheritedBox

Get a mutable reference to the InheritedBox struct.

source

pub fn clone_inherited_table(&self) -> Arc<InheritedTable>

Clone the InheritedTable struct.

source

pub fn get_inherited_table(&self) -> &InheritedTable

Get a immutable reference to the InheritedTable struct.

source

pub fn mutate_inherited_table(&mut self) -> &mut InheritedTable

Get a mutable reference to the InheritedTable struct.

source

pub fn clone_inherited_text(&self) -> Arc<InheritedText>

Clone the InheritedText struct.

source

pub fn get_inherited_text(&self) -> &InheritedText

Get a immutable reference to the InheritedText struct.

source

pub fn mutate_inherited_text(&mut self) -> &mut InheritedText

Get a mutable reference to the InheritedText struct.

source

pub fn clone_inherited_ui(&self) -> Arc<InheritedUI>

Clone the InheritedUI struct.

source

pub fn get_inherited_ui(&self) -> &InheritedUI

Get a immutable reference to the InheritedUI struct.

source

pub fn mutate_inherited_ui(&mut self) -> &mut InheritedUI

Get a mutable reference to the InheritedUI struct.

source

pub fn clone_list(&self) -> Arc<List>

Clone the List struct.

source

pub fn get_list(&self) -> &List

Get a immutable reference to the List struct.

source

pub fn mutate_list(&mut self) -> &mut List

Get a mutable reference to the List struct.

source

pub fn clone_margin(&self) -> Arc<Margin>

Clone the Margin struct.

source

pub fn get_margin(&self) -> &Margin

Get a immutable reference to the Margin struct.

source

pub fn mutate_margin(&mut self) -> &mut Margin

Get a mutable reference to the Margin struct.

source

pub fn clone_outline(&self) -> Arc<Outline>

Clone the Outline struct.

source

pub fn get_outline(&self) -> &Outline

Get a immutable reference to the Outline struct.

source

pub fn mutate_outline(&mut self) -> &mut Outline

Get a mutable reference to the Outline struct.

source

pub fn clone_padding(&self) -> Arc<Padding>

Clone the Padding struct.

source

pub fn get_padding(&self) -> &Padding

Get a immutable reference to the Padding struct.

source

pub fn mutate_padding(&mut self) -> &mut Padding

Get a mutable reference to the Padding struct.

source

pub fn clone_position(&self) -> Arc<Position>

Clone the Position struct.

source

pub fn get_position(&self) -> &Position

Get a immutable reference to the Position struct.

source

pub fn mutate_position(&mut self) -> &mut Position

Get a mutable reference to the Position struct.

source

pub fn clone_table(&self) -> Arc<Table>

Clone the Table struct.

source

pub fn get_table(&self) -> &Table

Get a immutable reference to the Table struct.

source

pub fn mutate_table(&mut self) -> &mut Table

Get a mutable reference to the Table struct.

source

pub fn clone_text(&self) -> Arc<Text>

Clone the Text struct.

source

pub fn get_text(&self) -> &Text

Get a immutable reference to the Text struct.

source

pub fn mutate_text(&mut self) -> &mut Text

Get a mutable reference to the Text struct.

source

pub fn clone_ui(&self) -> Arc<UI>

Clone the UI struct.

source

pub fn get_ui(&self) -> &UI

Get a immutable reference to the UI struct.

source

pub fn mutate_ui(&mut self) -> &mut UI

Get a mutable reference to the UI struct.

source

pub fn rules(&self) -> &StrongRuleNode

Gets a reference to the rule node. Panic if no rule node exists.

source

pub fn ineffective_content_property(&self) -> bool

Returns whether the “content” property for the given style is completely ineffective, and would yield an empty ::before or ::after pseudo-element.

source

pub fn can_be_fragmented(&self) -> bool

Whether the current style or any of its ancestors is multicolumn.

source

pub fn is_multicol(&self) -> bool

Whether the current style is multicolumn.

source

pub fn content_inline_size(&self) -> &Size

Get the logical computed inline size.

source

pub fn content_block_size(&self) -> &Size

Get the logical computed block size.

source

pub fn min_inline_size(&self) -> &Size

Get the logical computed min inline size.

source

pub fn min_block_size(&self) -> &Size

Get the logical computed min block size.

source

pub fn max_inline_size(&self) -> &MaxSize

Get the logical computed max inline size.

source

pub fn max_block_size(&self) -> &MaxSize

Get the logical computed max block size.

source

pub fn logical_padding(&self) -> LogicalMargin<&LengthPercentage>

Get the logical computed padding for this writing mode.

source

pub fn border_width_for_writing_mode( &self, writing_mode: WritingMode ) -> LogicalMargin<Au>

Get the logical border width

source

pub fn logical_border_width(&self) -> LogicalMargin<Au>

Gets the logical computed border widths for this style.

source

pub fn logical_margin(&self) -> LogicalMargin<&LengthPercentageOrAuto>

Gets the logical computed margin from this style.

source

pub fn logical_position(&self) -> LogicalMargin<&LengthPercentageOrAuto>

Gets the logical position from this style.

source

pub fn overrides_transform_style(&self) -> bool

Return true if the effects force the transform style to be Flat

source

pub fn get_used_transform_style(&self) -> T

source

pub fn transform_requires_layer(&self) -> bool

Whether given this transform value, the compositor would require a layer.

Trait Implementations§

source§

impl Clone for ComputedValuesInner

source§

fn clone(&self) -> ComputedValuesInner

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ComputedValuesInner

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> MaybeBoxed<Box<T, Global>> for T

source§

fn maybe_boxed(self) -> Box<T, Global>

Convert
source§

impl<T> MaybeBoxed<T> for T

source§

fn maybe_boxed(self) -> T

Convert
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Erased for T

source§

impl<T> ErasedDestructor for Twhere T: 'static,

source§

impl<T> MaybeSendSync for T