Add gecko glue for perspective and perspective-origin.

This commit is contained in:
Nazım Can Altınova 2016-12-23 19:29:50 +03:00
parent aeb5d34394
commit ed7945e747
3 changed files with 28 additions and 4 deletions

View file

@ -1531,12 +1531,12 @@ ${helpers.single_keyword("resize",
${helpers.predefined_type("perspective",
"LengthOrNone",
"Either::Second(None_)",
products="servo",
gecko_ffi_name="mChildPerspective",
animatable=True)}
// FIXME: This prop should be animatable
// https://drafts.csswg.org/css-transforms/#perspective-origin-property
<%helpers:longhand name="perspective-origin" products="servo" animatable="False">
<%helpers:longhand name="perspective-origin" animatable="False">
use std::fmt;
use style_traits::ToCss;
use values::HasViewportPercentage;