mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Ignore unchanged property for scroll-linked effect detector
I think this is cleaner. Differential Revision: https://phabricator.services.mozilla.com/D141737
This commit is contained in:
parent
a9fe204f39
commit
19a43aa7da
1 changed files with 2 additions and 1 deletions
|
@ -474,9 +474,10 @@ impl NonCustomPropertyId {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Convert a `NonCustomPropertyId` into a `nsCSSPropertyID`.
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
#[inline]
|
#[inline]
|
||||||
fn to_nscsspropertyid(self) -> nsCSSPropertyID {
|
pub fn to_nscsspropertyid(self) -> nsCSSPropertyID {
|
||||||
// unsafe: guaranteed by static_assert_nscsspropertyid above.
|
// unsafe: guaranteed by static_assert_nscsspropertyid above.
|
||||||
unsafe { std::mem::transmute(self.0 as i32) }
|
unsafe { std::mem::transmute(self.0 as i32) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue