diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-04-16 16:51:27 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-04-29 02:47:46 +0200 |
commit | 544a02a25068a92dfd9e950eb3609713ad9599c7 (patch) | |
tree | 2817525debff0c4d8cd84bda8cf8c87a48c0bedd /components/layout/multicol.rs | |
parent | cc4749373a421c6323dd5c9e5037899775ba015d (diff) | |
download | servo-544a02a25068a92dfd9e950eb3609713ad9599c7.tar.gz servo-544a02a25068a92dfd9e950eb3609713ad9599c7.zip |
Refactor flow construction to make `float` less of a special case.
Diffstat (limited to 'components/layout/multicol.rs')
-rw-r--r-- | components/layout/multicol.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/layout/multicol.rs b/components/layout/multicol.rs index b23ccf65c1c..e46ea8abf71 100644 --- a/components/layout/multicol.rs +++ b/components/layout/multicol.rs @@ -4,10 +4,11 @@ //! CSS Multi-column layout http://dev.w3.org/csswg/css-multicol/ -#![deny(unsafe_blocks)] +#![deny(unsafe_code)] use block::BlockFlow; use context::LayoutContext; +use floats::FloatKind; use flow::{FlowClass, Flow}; use fragment::{Fragment, FragmentBorderBoxIterator}; use wrapper::ThreadSafeLayoutNode; @@ -24,10 +25,12 @@ pub struct MulticolFlow { } impl MulticolFlow { - pub fn from_node_and_fragment(node: &ThreadSafeLayoutNode, fragment: Fragment) + pub fn from_node_and_fragment(node: &ThreadSafeLayoutNode, + fragment: Fragment, + float_kind: Option<FloatKind>) -> MulticolFlow { MulticolFlow { - block_flow: BlockFlow::from_node_and_fragment(node, fragment) + block_flow: BlockFlow::from_node_and_fragment(node, fragment, float_kind) } } } |