mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Bug 1374233 - Part 11: Implement ToAnimatedValue for background-size.
MozReview-Commit-ID: DMcvpaqHdy9
This commit is contained in:
parent
1e79e5fe1b
commit
ebedea5860
6 changed files with 78 additions and 6 deletions
|
@ -76,8 +76,10 @@
|
|||
We assume that the default/initial value is an empty vector for these.
|
||||
`initial_value` need not be defined for these.
|
||||
</%doc>
|
||||
<%def name="vector_longhand(name, animation_value_type=None, allow_empty=False, separator='Comma', **kwargs)">
|
||||
<%call expr="longhand(name, animation_value_type=animation_value_type, vector=True, **kwargs)">
|
||||
<%def name="vector_longhand(name, animation_value_type=None, allow_empty=False, separator='Comma',
|
||||
need_animatable=False, **kwargs)">
|
||||
<%call expr="longhand(name, animation_value_type=animation_value_type, vector=True,
|
||||
need_animatable=need_animatable, **kwargs)">
|
||||
#[allow(unused_imports)]
|
||||
use smallvec::SmallVec;
|
||||
use std::fmt;
|
||||
|
@ -127,7 +129,7 @@
|
|||
% endif
|
||||
);
|
||||
|
||||
% if animation_value_type == "ComputedValue":
|
||||
% if need_animatable or animation_value_type == "ComputedValue":
|
||||
use properties::animated_properties::Animatable;
|
||||
use values::animated::ToAnimatedZero;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue