mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Use consistent naming and shared code for out-of-flow stuff.
Use the functions introduced in ee17eedf3a
.
This commit is contained in:
parent
0b5aaeff5d
commit
6b674a670b
3 changed files with 12 additions and 17 deletions
|
@ -53,10 +53,7 @@ ${helpers.single_keyword(
|
|||
>
|
||||
impl computed_value::T {
|
||||
pub fn is_absolutely_positioned(self) -> bool {
|
||||
match self {
|
||||
Self::Absolute | Self::Fixed => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, Self::Absolute | Self::Fixed)
|
||||
}
|
||||
}
|
||||
</%helpers:single_keyword>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue