mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Trivially cleanup length parsing.
Mostly formatting signatures properly, but also removing useless functions and stuff.
This commit is contained in:
parent
a6113af873
commit
fdc8405330
3 changed files with 43 additions and 37 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue