mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make raw_longhand take kwargs.
This commit is contained in:
parent
0fe55f01b5
commit
f58ff4a4f7
1 changed files with 7 additions and 12 deletions
|
@ -176,19 +176,14 @@ pub mod longhands {
|
||||||
use parser::ParserContext;
|
use parser::ParserContext;
|
||||||
use values::specified;
|
use values::specified;
|
||||||
|
|
||||||
<%def name="raw_longhand(name, keyword=None, derived_from=None, products='gecko,servo',
|
<%def name="raw_longhand(name, **kwargs)">
|
||||||
custom_cascade=False, experimental=False, internal=False,
|
|
||||||
gecko_ffi_name=None)">
|
|
||||||
<%
|
<%
|
||||||
if not CONFIG['product'] in products:
|
products = kwargs.pop("products", "gecko,servo")
|
||||||
|
if not CONFIG["product"] in products:
|
||||||
return ""
|
return ""
|
||||||
property = Longhand(name,
|
|
||||||
derived_from=derived_from,
|
property = Longhand(name, **kwargs)
|
||||||
keyword=keyword,
|
|
||||||
custom_cascade=custom_cascade,
|
|
||||||
experimental=experimental,
|
|
||||||
internal=internal,
|
|
||||||
gecko_ffi_name=gecko_ffi_name)
|
|
||||||
property.style_struct = THIS_STYLE_STRUCT
|
property.style_struct = THIS_STYLE_STRUCT
|
||||||
THIS_STYLE_STRUCT.longhands.append(property)
|
THIS_STYLE_STRUCT.longhands.append(property)
|
||||||
LONGHANDS.append(property)
|
LONGHANDS.append(property)
|
||||||
|
@ -268,7 +263,7 @@ pub mod longhands {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
% if custom_cascade:
|
% if property.custom_cascade:
|
||||||
cascade_property_custom(declaration,
|
cascade_property_custom(declaration,
|
||||||
inherited_style,
|
inherited_style,
|
||||||
context,
|
context,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue