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:
Pu Xingyu 2016-07-24 14:58:02 +08:00
parent a70d2bbed8
commit 7df5974456
2 changed files with 34 additions and 37 deletions

View file

@ -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