mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Regenerate style struct bindings with latest bindgen and gecko.
This commit is contained in:
parent
81f3239f69
commit
4c5f1a375e
3 changed files with 426 additions and 343 deletions
File diff suppressed because it is too large
Load diff
|
@ -230,6 +230,10 @@ impl HeapSizeOf for ${style_struct.gecko_ffi_name} {
|
|||
// Not entirely accurate, but good enough for now.
|
||||
fn heap_size_of_children(&self) -> usize { 0 }
|
||||
}
|
||||
|
||||
// FIXME(bholley): Make bindgen generate Debug for all types.
|
||||
%if style_struct.gecko_ffi_name in "nsStyleBorder nsStylePosition nsStyleDisplay nsStyleList nsStyleBackground "\
|
||||
"nsStyleFont nsStyleEffects nsStyleSVGReset".split():
|
||||
impl Debug for ${style_struct.gecko_ffi_name} {
|
||||
// FIXME(bholley): Generate this.
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
|
@ -237,6 +241,7 @@ impl Debug for ${style_struct.gecko_ffi_name} {
|
|||
}
|
||||
}
|
||||
%endif
|
||||
%endif
|
||||
</%def>
|
||||
|
||||
<%def name="raw_impl_trait(style_struct, skip_longhands='', skip_additionals='')">
|
||||
|
|
|
@ -116,6 +116,7 @@ fi
|
|||
-opaque-type "nsIntPoint" \
|
||||
-opaque-type "nsIntRect" \
|
||||
-opaque-type "nsTArray" \
|
||||
-opaque-type "nsStyleAutoArray" \
|
||||
-opaque-type "nsCOMArray" \
|
||||
-opaque-type "nsDependentString" \
|
||||
-opaque-type "EntryStore" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue