mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +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
|
@ -20,15 +20,16 @@ use crate::dom_traversal::{Contents, NodeAndStyleInfo};
|
|||
use crate::formatting_contexts::IndependentFormattingContext;
|
||||
use crate::fragment_tree::{BoxFragment, Fragment, FragmentFlags, HoistedSharedFragment};
|
||||
use crate::geom::{
|
||||
AuOrAuto, LazySize, LengthPercentageOrAuto, LogicalRect, LogicalSides, LogicalSides1D,
|
||||
LogicalVec2, PhysicalPoint, PhysicalRect, PhysicalSides, PhysicalSize, PhysicalVec, Size,
|
||||
Sizes, ToLogical, ToLogicalWithContainingBlock,
|
||||
AuOrAuto, LengthPercentageOrAuto, LogicalRect, LogicalSides, LogicalSides1D, LogicalVec2,
|
||||
PhysicalPoint, PhysicalRect, PhysicalSides, PhysicalSize, PhysicalVec, ToLogical,
|
||||
ToLogicalWithContainingBlock,
|
||||
};
|
||||
use crate::layout_box_base::{CacheableLayoutResult, LayoutBoxBase};
|
||||
use crate::sizing::{LazySize, Size, SizeConstraint, Sizes};
|
||||
use crate::style_ext::{Clamp, ComputedValuesExt, ContentBoxSizesAndPBM, DisplayInside};
|
||||
use crate::{
|
||||
ConstraintSpace, ContainingBlock, ContainingBlockSize, DefiniteContainingBlock,
|
||||
PropagatedBoxTreeData, SizeConstraint,
|
||||
PropagatedBoxTreeData,
|
||||
};
|
||||
|
||||
#[derive(Debug, MallocSizeOf)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue