mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Compute content sizes lazily in layout 2020
This commit is contained in:
parent
ba5568a0a6
commit
235df94f2e
11 changed files with 176 additions and 247 deletions
|
@ -5,6 +5,7 @@
|
|||
use crate::cell::ArcRefCell;
|
||||
use crate::formatting_contexts::IndependentFormattingContext;
|
||||
use crate::positioned::AbsolutelyPositionedBox;
|
||||
use crate::sizing::ContentSizes;
|
||||
|
||||
mod construct;
|
||||
mod layout;
|
||||
|
@ -19,3 +20,9 @@ pub(crate) enum FlexLevelBox {
|
|||
FlexItem(IndependentFormattingContext),
|
||||
OutOfFlowAbsolutelyPositionedBox(ArcRefCell<AbsolutelyPositionedBox>),
|
||||
}
|
||||
|
||||
impl FlexContainer {
|
||||
pub fn inline_content_sizes(&self) -> ContentSizes {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue