mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
parent
be0e84b30f
commit
86904757e6
12 changed files with 2728 additions and 0 deletions
18
components/layout_2020/flow/float.rs
Normal file
18
components/layout_2020/flow/float.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
use super::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(in crate::layout) struct FloatBox {
|
||||
pub style: Arc<ComputedValues>,
|
||||
pub contents: IndependentFormattingContext,
|
||||
}
|
||||
|
||||
/// Data kept during layout about the floats in a given block formatting context.
|
||||
pub(in crate::layout) struct FloatContext {
|
||||
// TODO
|
||||
}
|
||||
|
||||
impl FloatContext {
|
||||
pub fn new() -> Self {
|
||||
FloatContext {}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue