mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Make longhand take kwargs.
This commit is contained in:
parent
f58ff4a4f7
commit
dea08f4ca0
1 changed files with 4 additions and 9 deletions
|
@ -310,21 +310,16 @@ pub mod longhands {
|
||||||
}
|
}
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="longhand(name, derived_from=None, keyword=None, products='gecko,servo',
|
<%def name="longhand(name, **kwargs)">
|
||||||
custom_cascade=False, experimental=False, internal=False,
|
<%call expr="raw_longhand(name, **kwargs)">
|
||||||
gecko_ffi_name=None)">
|
|
||||||
<%self:raw_longhand name="${name}" derived_from="${derived_from}" keyword="${keyword}"
|
|
||||||
products="${products}" custom_cascade="${custom_cascade}"
|
|
||||||
experimental="${experimental}" internal="${internal}"
|
|
||||||
gecko_ffi_name="${gecko_ffi_name}">
|
|
||||||
${caller.body()}
|
${caller.body()}
|
||||||
% if not derived_from:
|
% if not LONGHANDS_BY_NAME[name].derived_from:
|
||||||
pub fn parse_specified(context: &ParserContext, input: &mut Parser)
|
pub fn parse_specified(context: &ParserContext, input: &mut Parser)
|
||||||
-> Result<DeclaredValue<SpecifiedValue>, ()> {
|
-> Result<DeclaredValue<SpecifiedValue>, ()> {
|
||||||
parse(context, input).map(DeclaredValue::Value)
|
parse(context, input).map(DeclaredValue::Value)
|
||||||
}
|
}
|
||||||
% endif
|
% endif
|
||||||
</%self:raw_longhand>
|
</%call>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="single_keyword_computed(name, values, products='gecko,servo',
|
<%def name="single_keyword_computed(name, values, products='gecko,servo',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue