mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Kill gecko_only from vector_longhand
This commit is contained in:
parent
42e551f606
commit
6c7c00f4c8
1 changed files with 184 additions and 191 deletions
|
@ -69,20 +69,16 @@
|
|||
// FIXME (Manishearth): Add computed_value_as_specified argument
|
||||
// and handle the empty case correctly
|
||||
<%doc>
|
||||
To be used in cases where we have a grammar like
|
||||
"<thing> [ , <thing> ]*". `gecko_only` should be set
|
||||
to True for cases where Servo takes a single value
|
||||
and Stylo supports vector values.
|
||||
To be used in cases where we have a grammar like "<thing> [ , <thing> ]*".
|
||||
|
||||
Setting allow_empty to False allows for cases where the vector
|
||||
is empty. The grammar for these is usually "none | <thing> [ , <thing> ]*".
|
||||
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, gecko_only=False, allow_empty=False,
|
||||
<%def name="vector_longhand(name, allow_empty=False,
|
||||
delegate_animate=False, separator='Comma', **kwargs)">
|
||||
<%call expr="longhand(name, vector=True, **kwargs)">
|
||||
% if not gecko_only:
|
||||
#[allow(unused_imports)]
|
||||
use smallvec::SmallVec;
|
||||
use std::fmt;
|
||||
|
@ -268,9 +264,6 @@
|
|||
.collect())
|
||||
}
|
||||
}
|
||||
% else:
|
||||
${caller.body()}
|
||||
% endif
|
||||
</%call>
|
||||
</%def>
|
||||
<%def name="longhand(*args, **kwargs)">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue