diff options
author | atbrakhi <atbrakhi@igalia.com> | 2024-01-15 15:31:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 14:31:21 +0000 |
commit | 1b847c3166d17a957f5ab5e4aae3a3fcb10d875c (patch) | |
tree | 6ff386ce681e3be3406eace72af574305dcd4b14 /components/layout_2020/table/mod.rs | |
parent | efa38c67fe6bdec751739bb3a0a6d159f2b695c8 (diff) | |
download | servo-1b847c3166d17a957f5ab5e4aae3a3fcb10d875c.tar.gz servo-1b847c3166d17a957f5ab5e4aae3a3fcb10d875c.zip |
layout: Switch `IndependentLayout` to use `Au` instead of `Length` (#31083)
* use au in layout
* fmt
* review fix
Diffstat (limited to 'components/layout_2020/table/mod.rs')
-rw-r--r-- | components/layout_2020/table/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout_2020/table/mod.rs b/components/layout_2020/table/mod.rs index 918fa88ac5d..901943ad8e3 100644 --- a/components/layout_2020/table/mod.rs +++ b/components/layout_2020/table/mod.rs @@ -7,11 +7,12 @@ mod construct; +use app_units::Au; pub(crate) use construct::AnonymousTableContent; pub use construct::TableBuilder; +use euclid::num::Zero; use euclid::{Point2D, UnknownUnit, Vector2D}; use serde::Serialize; -use style::values::computed::Length; use super::flow::BlockFormattingContext; use crate::context::LayoutContext; @@ -39,7 +40,7 @@ impl Table { ) -> IndependentLayout { IndependentLayout { fragments: Vec::new(), - content_block_size: Length::new(0.), + content_block_size: Au::zero(), last_inflow_baseline_offset: None, } } |