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:
Boris Chiou 2017-07-28 10:58:08 +08:00
parent b1d9746041
commit a8a83af16d

View file

@ -979,7 +979,14 @@ ${helpers.predefined_type(
dest, "rotate3d({}, {}, {}, {})", dest, "rotate3d({}, {}, {}, {})",
Css(x), Css(y), Css(z), Css(theta)), Css(x), Css(y), Css(z), Css(theta)),
SpecifiedOperation::Perspective(ref length) => write!(dest, "perspective({})", Css(length)), 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))
}
} }
} }
} }