mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Switch replaced layout to app units (#32625)
This commit is contained in:
parent
a730469b70
commit
f055964792
2 changed files with 73 additions and 72 deletions
|
@ -25,7 +25,7 @@ use crate::cell::ArcRefCell;
|
|||
use crate::context::LayoutContext;
|
||||
use crate::formatting_contexts::{Baselines, IndependentFormattingContext, IndependentLayout};
|
||||
use crate::fragment_tree::{BoxFragment, CollapsedBlockMargins, Fragment};
|
||||
use crate::geom::{AuOrAuto, LengthOrAuto, LogicalRect, LogicalSides, LogicalVec2};
|
||||
use crate::geom::{AuOrAuto, LogicalRect, LogicalSides, LogicalVec2};
|
||||
use crate::positioned::{AbsolutelyPositionedBox, PositioningContext, PositioningContextLength};
|
||||
use crate::sizing::ContentSizes;
|
||||
use crate::style_ext::{Clamp, ComputedValuesExt};
|
||||
|
@ -1187,8 +1187,9 @@ impl<'a> FlexItem<'a> {
|
|||
inline: replaced
|
||||
.style
|
||||
.content_box_size(flex_context.containing_block, &pbm)
|
||||
.inline,
|
||||
block: LengthOrAuto::LengthPercentage(size.into()),
|
||||
.inline
|
||||
.map(Au::from),
|
||||
block: AuOrAuto::LengthPercentage(size),
|
||||
});
|
||||
let size = replaced.contents.used_size_as_if_inline_element(
|
||||
flex_context.containing_block,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue