mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rename enum 'Mode' to 'Direction'
Rename the 'Mode' enum to 'Direction' and move it to 'model.rs', thus it can be used to indicate logical direction.
This commit is contained in:
parent
a70d2bbed8
commit
7df5974456
2 changed files with 34 additions and 37 deletions
|
@ -502,6 +502,13 @@ impl ToGfxMatrix for ComputedMatrix {
|
|||
}
|
||||
}
|
||||
|
||||
// Used to specify the logical direction.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum Direction {
|
||||
Inline,
|
||||
Block
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css2/visudet.html#min-max-widths
|
||||
// https://drafts.csswg.org/css2/visudet.html#min-max-heights
|
||||
/// A min or max constraint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue