mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
layout: Switch IndependentLayout
to use Au
instead of Length
(#31083)
* use au in layout * fmt * review fix
This commit is contained in:
parent
efa38c67fe
commit
1b847c3166
8 changed files with 52 additions and 21 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue