Struct layout_2013::block::AbsoluteReplaced
source · pub struct AbsoluteReplaced;
Trait Implementations§
source§impl ISizeAndMarginsComputer for AbsoluteReplaced
impl ISizeAndMarginsComputer for AbsoluteReplaced
source§fn solve_inline_size_constraints(
&self,
_: &mut BlockFlow,
input: &ISizeConstraintInput,
) -> ISizeConstraintSolution
fn solve_inline_size_constraints( &self, _: &mut BlockFlow, input: &ISizeConstraintInput, ) -> ISizeConstraintSolution
Solve the horizontal constraint equation for absolute replaced elements.
CSS Section 10.3.8 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.
source§fn initial_computed_inline_size(
&self,
block: &mut BlockFlow,
_: Au,
shared_context: &SharedStyleContext<'_>,
) -> MaybeAuto
fn initial_computed_inline_size( &self, block: &mut BlockFlow, _: Au, shared_context: &SharedStyleContext<'_>, ) -> MaybeAuto
Calculate used value of inline-size just like we do for inline replaced elements.
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
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 AbsoluteReplaced
impl RefUnwindSafe for AbsoluteReplaced
impl Send for AbsoluteReplaced
impl Sync for AbsoluteReplaced
impl Unpin for AbsoluteReplaced
impl UnwindSafe for AbsoluteReplaced
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