Update WR to use the new sticky positioning API

This commit is contained in:
Martin Robinson 2017-10-30 10:15:30 +01:00
parent 17bfe5c120
commit f37fa0cf6d
6 changed files with 58 additions and 32 deletions

View file

@ -424,6 +424,14 @@ impl MaybeAuto {
}
}
#[inline]
pub fn to_option(&self) -> Option<Au> {
match *self {
MaybeAuto::Specified(value) => Some(value),
MaybeAuto::Auto => None,
}
}
#[inline]
pub fn specified_or_default(&self, default: Au) -> Au {
match *self {