mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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>
|
||||
</%def>
|
||||
|
||||
<%def name="predefined_type(name, type, initial_value, parse_method='parse', products='gecko servo')">
|
||||
<%self:longhand name="${name}" products="${products}">
|
||||
<%def name="predefined_type(name, type, initial_value, parse_method='parse', **kwargs)">
|
||||
<%call expr="longhand(name, **kwargs)">
|
||||
#[allow(unused_imports)]
|
||||
use app_units::Au;
|
||||
pub type SpecifiedValue = specified::${type};
|
||||
|
@ -29,7 +29,7 @@
|
|||
-> Result<SpecifiedValue, ()> {
|
||||
specified::${type}::${parse_method}(input)
|
||||
}
|
||||
</%self:longhand>
|
||||
</%call>
|
||||
</%def>
|
||||
|
||||
<%def name="raw_longhand(*args, **kwargs)">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue