Layout 2020: Rename flow_relative types to Logical... (#30324)

This makes the names of flow relative geometry consistent with what is
used in the style crate and removes them from a module. With this change
it's more obvious what makes these types different from the ones in
`euclid`.
This commit is contained in:
Martin Robinson 2023-09-12 09:31:30 +02:00 committed by GitHub
parent 90ad5920e2
commit 8299868bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 314 additions and 317 deletions

View file

@ -30,7 +30,7 @@ pub use fragment_tree::FragmentTree;
use style::properties::ComputedValues;
use style::values::computed::{Length, LengthOrAuto};
use crate::geom::flow_relative::Vec2;
use crate::geom::LogicalVec2;
pub struct ContainingBlock<'a> {
inline_size: Length,
@ -39,7 +39,7 @@ pub struct ContainingBlock<'a> {
}
struct DefiniteContainingBlock<'a> {
size: Vec2<Length>,
size: LogicalVec2<Length>,
style: &'a ComputedValues,
}