servo/components/layout_2020/flow/float.rs
2019-10-04 17:51:05 +02:00

24 lines
650 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use crate::IndependentFormattingContext;
use servo_arc::Arc;
use style::properties::ComputedValues;
#[derive(Debug)]
pub(crate) struct FloatBox {
pub style: Arc<ComputedValues>,
pub contents: IndependentFormattingContext,
}
/// Data kept during layout about the floats in a given block formatting context.
pub(crate) struct FloatContext {
// TODO
}
impl FloatContext {
pub fn new() -> Self {
FloatContext {}
}
}