diff options
author | Anthony Ramine <nox@nox.paris> | 2020-06-18 14:11:02 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-06-18 14:11:02 +0200 |
commit | 235df94f2eb9227fb35a51a5bc486aa9d29b5036 (patch) | |
tree | f1d87a305d07d5e484ca0fbd2cbc269a5f6f4ca9 /components/layout_2020/flow/float.rs | |
parent | ba5568a0a60cbd4bbedd3b766b7182824d75b131 (diff) | |
download | servo-235df94f2eb9227fb35a51a5bc486aa9d29b5036.tar.gz servo-235df94f2eb9227fb35a51a5bc486aa9d29b5036.zip |
Compute content sizes lazily in layout 2020
Diffstat (limited to 'components/layout_2020/flow/float.rs')
-rw-r--r-- | components/layout_2020/flow/float.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/layout_2020/flow/float.rs b/components/layout_2020/flow/float.rs index da70838499f..22b0b1bb66e 100644 --- a/components/layout_2020/flow/float.rs +++ b/components/layout_2020/flow/float.rs @@ -5,8 +5,7 @@ use crate::context::LayoutContext; use crate::dom_traversal::{Contents, NodeAndStyleInfo, NodeExt}; use crate::formatting_contexts::IndependentFormattingContext; -use crate::sizing::ContentSizesRequest; -use crate::style_ext::{ComputedValuesExt, DisplayInside}; +use crate::style_ext::DisplayInside; use style::values::specified::text::TextDecorationLine; #[derive(Debug, Serialize)] @@ -32,14 +31,12 @@ impl FloatBox { display_inside: DisplayInside, contents: Contents, ) -> Self { - let content_sizes = ContentSizesRequest::inline_if(!info.style.inline_size_is_length()); Self { contents: IndependentFormattingContext::construct( context, info, display_inside, contents, - content_sizes, // Text decorations are not propagated to any out-of-flow descendants TextDecorationLine::NONE, ), |