mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
layout: Move sizing logic from geom.rs to sizing.rs (#38568)
Moves `Size`, `SizeConstraint`, `Sizes` and `LazySizeData`. Testing: Not needed, no change in behavior. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
d5d3ad6949
commit
7ff8724eaf
12 changed files with 559 additions and 557 deletions
|
@ -29,11 +29,13 @@ use crate::dom::NodeExt;
|
|||
use crate::fragment_tree::{
|
||||
BaseFragmentInfo, CollapsedBlockMargins, Fragment, IFrameFragment, ImageFragment,
|
||||
};
|
||||
use crate::geom::{LazySize, LogicalVec2, PhysicalPoint, PhysicalRect, PhysicalSize};
|
||||
use crate::geom::{LogicalVec2, PhysicalPoint, PhysicalRect, PhysicalSize};
|
||||
use crate::layout_box_base::{CacheableLayoutResult, LayoutBoxBase};
|
||||
use crate::sizing::{ComputeInlineContentSizes, InlineContentSizesResult};
|
||||
use crate::sizing::{
|
||||
ComputeInlineContentSizes, InlineContentSizesResult, LazySize, SizeConstraint,
|
||||
};
|
||||
use crate::style_ext::{AspectRatio, Clamp, ComputedValuesExt, LayoutStyle};
|
||||
use crate::{ConstraintSpace, ContainingBlock, SizeConstraint};
|
||||
use crate::{ConstraintSpace, ContainingBlock};
|
||||
|
||||
#[derive(Debug, MallocSizeOf)]
|
||||
pub(crate) struct ReplacedContents {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue