Regenerate style struct bindings with latest bindgen and gecko.

This commit is contained in:
Bobby Holley 2016-04-21 14:32:14 -07:00
parent 81f3239f69
commit 4c5f1a375e
3 changed files with 426 additions and 343 deletions

File diff suppressed because it is too large Load diff

View file

@ -230,6 +230,10 @@ impl HeapSizeOf for ${style_struct.gecko_ffi_name} {
// Not entirely accurate, but good enough for now. // Not entirely accurate, but good enough for now.
fn heap_size_of_children(&self) -> usize { 0 } 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} { impl Debug for ${style_struct.gecko_ffi_name} {
// FIXME(bholley): Generate this. // FIXME(bholley): Generate this.
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@ -237,6 +241,7 @@ impl Debug for ${style_struct.gecko_ffi_name} {
} }
} }
%endif %endif
%endif
</%def> </%def>
<%def name="raw_impl_trait(style_struct, skip_longhands='', skip_additionals='')"> <%def name="raw_impl_trait(style_struct, skip_longhands='', skip_additionals='')">

View file

@ -116,6 +116,7 @@ fi
-opaque-type "nsIntPoint" \ -opaque-type "nsIntPoint" \
-opaque-type "nsIntRect" \ -opaque-type "nsIntRect" \
-opaque-type "nsTArray" \ -opaque-type "nsTArray" \
-opaque-type "nsStyleAutoArray" \
-opaque-type "nsCOMArray" \ -opaque-type "nsCOMArray" \
-opaque-type "nsDependentString" \ -opaque-type "nsDependentString" \
-opaque-type "EntryStore" \ -opaque-type "EntryStore" \