mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement ToCss for SpecifiedOperation::{InterpolateMatrix|AccumulateMatrix}.
DevTools may serialize an InterpolateMatrix or AccumulateMatrix by KeyframeEffectReadOnly::GetProperties(), so we have to implement both.
This commit is contained in:
parent
b1d9746041
commit
a8a83af16d
1 changed files with 8 additions and 1 deletions
|
@ -979,7 +979,14 @@ ${helpers.predefined_type(
|
|||
dest, "rotate3d({}, {}, {}, {})",
|
||||
Css(x), Css(y), Css(z), Css(theta)),
|
||||
SpecifiedOperation::Perspective(ref length) => write!(dest, "perspective({})", Css(length)),
|
||||
_ => unreachable!(),
|
||||
SpecifiedOperation::InterpolateMatrix { ref from_list, ref to_list, progress } => {
|
||||
write!(dest, "interpolatematrix({}, {}, {})",
|
||||
Css(from_list), Css(to_list), Css(progress))
|
||||
},
|
||||
SpecifiedOperation::AccumulateMatrix { ref from_list, ref to_list, count } => {
|
||||
write!(dest, "accumulatematrix({}, {}, {})",
|
||||
Css(from_list), Css(to_list), Css(count))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue