From a8a83af16dc440b62bb1d11bc8415e365a53ca5f Mon Sep 17 00:00:00 2001 From: Boris Chiou Date: Fri, 28 Jul 2017 10:58:08 +0800 Subject: [PATCH] Implement ToCss for SpecifiedOperation::{InterpolateMatrix|AccumulateMatrix}. DevTools may serialize an InterpolateMatrix or AccumulateMatrix by KeyframeEffectReadOnly::GetProperties(), so we have to implement both. --- components/style/properties/longhand/box.mako.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index f9ed53a42dd..7bdb7c1c1c5 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -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)) + } } } }