Struct layout_2013::block::AbsoluteNonReplaced
source · pub struct AbsoluteNonReplaced;
Expand description
The different types of Blocks.
They mainly differ in the way inline-size and block-sizes and margins are calculated for them.
Trait Implementations§
source§impl ISizeAndMarginsComputer for AbsoluteNonReplaced
impl ISizeAndMarginsComputer for AbsoluteNonReplaced
source§fn solve_inline_size_constraints(
&self,
block: &mut BlockFlow,
input: &ISizeConstraintInput,
) -> ISizeConstraintSolution
fn solve_inline_size_constraints( &self, block: &mut BlockFlow, input: &ISizeConstraintInput, ) -> ISizeConstraintSolution
Solve the horizontal constraint equation for absolute non-replaced elements.
CSS Section 10.3.7 Constraint equation: inline-start + inline-end + inline-size + margin-inline-start + margin-inline-end = absolute containing block inline-size - (horizontal padding and border) [aka available inline-size]
Return the solution for the equation.
fn containing_block_inline_size( &self, block: &mut BlockFlow, _: Au, shared_context: &SharedStyleContext<'_>, ) -> Au
source§fn set_inline_position_of_flow_if_necessary(
&self,
block: &mut BlockFlow,
solution: ISizeConstraintSolution,
)
fn set_inline_position_of_flow_if_necessary( &self, block: &mut BlockFlow, solution: ISizeConstraintSolution, )
Set the inline coordinate of the given flow if it is absolutely positioned.
source§fn compute_border_and_padding(
&self,
block: &mut BlockFlow,
containing_block_inline_size: Au,
)
fn compute_border_and_padding( &self, block: &mut BlockFlow, containing_block_inline_size: Au, )
Instructs the fragment to compute its border and padding.
source§fn compute_inline_size_constraint_inputs(
&self,
block: &mut BlockFlow,
parent_flow_inline_size: Au,
shared_context: &SharedStyleContext<'_>,
) -> ISizeConstraintInput
fn compute_inline_size_constraint_inputs( &self, block: &mut BlockFlow, parent_flow_inline_size: Au, shared_context: &SharedStyleContext<'_>, ) -> ISizeConstraintInput
Compute the inputs for the ISize constraint equation. Read more
source§fn set_inline_size_constraint_solutions(
&self,
block: &mut BlockFlow,
solution: ISizeConstraintSolution,
)
fn set_inline_size_constraint_solutions( &self, block: &mut BlockFlow, solution: ISizeConstraintSolution, )
Set the used values for inline-size and margins from the relevant constraint equation.
This is called only once. Read more
fn initial_computed_inline_size( &self, block: &mut BlockFlow, parent_flow_inline_size: Au, shared_context: &SharedStyleContext<'_>, ) -> MaybeAuto
source§fn compute_used_inline_size(
&self,
block: &mut BlockFlow,
shared_context: &SharedStyleContext<'_>,
parent_flow_inline_size: Au,
)
fn compute_used_inline_size( &self, block: &mut BlockFlow, shared_context: &SharedStyleContext<'_>, parent_flow_inline_size: Au, )
Compute the used value of inline-size, taking care of min-inline-size and max-inline-size. Read more
source§fn solve_block_inline_size_constraints(
&self,
block: &mut BlockFlow,
input: &ISizeConstraintInput,
) -> ISizeConstraintSolution
fn solve_block_inline_size_constraints( &self, block: &mut BlockFlow, input: &ISizeConstraintInput, ) -> ISizeConstraintSolution
Computes inline-start and inline-end margins and inline-size. Read more
Auto Trait Implementations§
impl Freeze for AbsoluteNonReplaced
impl RefUnwindSafe for AbsoluteNonReplaced
impl Send for AbsoluteNonReplaced
impl Sync for AbsoluteNonReplaced
impl Unpin for AbsoluteNonReplaced
impl UnwindSafe for AbsoluteNonReplaced
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert