style: Trivially cleanup length parsing.

Mostly formatting signatures properly, but also removing useless functions and
stuff.
This commit is contained in:
Emilio Cobos Álvarez 2018-02-16 15:58:13 +01:00
parent a6113af873
commit fdc8405330
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 43 additions and 37 deletions

View file

@ -213,11 +213,13 @@ bitflags! {
impl ParsingMode {
/// Whether the parsing mode allows unitless lengths for non-zero values to be intpreted as px.
#[inline]
pub fn allows_unitless_lengths(&self) -> bool {
self.intersects(ParsingMode::ALLOW_UNITLESS_LENGTH)
}
/// Whether the parsing mode allows all numeric values.
#[inline]
pub fn allows_all_numeric_values(&self) -> bool {
self.intersects(ParsingMode::ALLOW_ALL_NUMERIC_VALUES)
}