mirror of
https://github.com/servo/servo.git
synced 2025-07-03 21:43:41 +01:00
Make single_keyword take kwargs.
This commit is contained in:
parent
e4a8613f6d
commit
38d2063a9d
1 changed files with 3 additions and 11 deletions
|
@ -343,19 +343,11 @@ pub mod longhands {
|
||||||
</%call>
|
</%call>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="single_keyword(name, values, products='gecko,servo',
|
<%def name="single_keyword(name, values, **kwargs)">
|
||||||
experimental=False, internal=False,
|
<%call expr="single_keyword_computed(name, values, **kwargs)">
|
||||||
gecko_constant_prefix=None, gecko_ffi_name=None)">
|
|
||||||
<%self:single_keyword_computed name="${name}"
|
|
||||||
values="${values}"
|
|
||||||
products="${products}"
|
|
||||||
experimental="${experimental}"
|
|
||||||
internal="${internal}",
|
|
||||||
gecko_constant_prefix="${gecko_constant_prefix}"
|
|
||||||
gecko_ffi_name="${gecko_ffi_name}">
|
|
||||||
use values::computed::ComputedValueAsSpecified;
|
use values::computed::ComputedValueAsSpecified;
|
||||||
impl ComputedValueAsSpecified for SpecifiedValue {}
|
impl ComputedValueAsSpecified for SpecifiedValue {}
|
||||||
</%self:single_keyword_computed>
|
</%call>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="predefined_type(name, type, initial_value, parse_method='parse', products='gecko,servo')">
|
<%def name="predefined_type(name, type, initial_value, parse_method='parse', products='gecko,servo')">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue