mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make PropertyDeclaration::id and AnimationValue::id inline
This commit is contained in:
parent
921d1aeeba
commit
57daf06c71
2 changed files with 2 additions and 0 deletions
|
@ -363,6 +363,7 @@ pub enum AnimationValue {
|
|||
|
||||
impl AnimationValue {
|
||||
/// Returns the longhand id this animated value corresponds to.
|
||||
#[inline]
|
||||
pub fn id(&self) -> LonghandId {
|
||||
let id = unsafe { *(self as *const _ as *const LonghandId) };
|
||||
debug_assert_eq!(id, match *self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue