mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make predefined_type use kwargs.
This commit is contained in:
parent
a4ee11da0a
commit
456b05e9cf
1 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,8 @@
|
||||||
</%call>
|
</%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', **kwargs)">
|
||||||
<%self:longhand name="${name}" products="${products}">
|
<%call expr="longhand(name, **kwargs)">
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use app_units::Au;
|
use app_units::Au;
|
||||||
pub type SpecifiedValue = specified::${type};
|
pub type SpecifiedValue = specified::${type};
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
-> Result<SpecifiedValue, ()> {
|
-> Result<SpecifiedValue, ()> {
|
||||||
specified::${type}::${parse_method}(input)
|
specified::${type}::${parse_method}(input)
|
||||||
}
|
}
|
||||||
</%self:longhand>
|
</%call>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="raw_longhand(*args, **kwargs)">
|
<%def name="raw_longhand(*args, **kwargs)">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue