mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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
|
@ -4,11 +4,11 @@
|
|||
|
||||
use std::convert::TryInto;
|
||||
|
||||
use app_units::Au;
|
||||
use serde::Serialize;
|
||||
use servo_arc::Arc;
|
||||
use style::logical_geometry::WritingMode;
|
||||
use style::properties::ComputedValues;
|
||||
use style::values::computed::Length;
|
||||
use style::values::specified::text::TextDecorationLine;
|
||||
|
||||
use crate::context::LayoutContext;
|
||||
|
@ -63,12 +63,12 @@ pub(crate) struct IndependentLayout {
|
|||
pub fragments: Vec<Fragment>,
|
||||
|
||||
/// https://drafts.csswg.org/css2/visudet.html#root-height
|
||||
pub content_block_size: Length,
|
||||
pub content_block_size: Au,
|
||||
|
||||
/// The offset of the last inflow baseline of this layout in the content area, if
|
||||
/// there was one. This is used to propagate baselines to the ancestors of `display:
|
||||
/// inline-block`.
|
||||
pub last_inflow_baseline_offset: Option<Length>,
|
||||
pub last_inflow_baseline_offset: Option<Au>,
|
||||
}
|
||||
|
||||
impl IndependentFormattingContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue