Auto merge of #12506 - servo:geckolib-win, r=larsbergstrom

Rewrite a line in geckolib's properties.mako.rs to fix the build on windows.

Fixes #12505.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12506)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-07-19 19:41:07 -05:00 committed by GitHub
commit 3a9fca619d

View file

@ -401,8 +401,7 @@ impl Clone for ${style_struct.gecko_struct_name} {
} }
// FIXME(bholley): Make bindgen generate Debug for all types. // FIXME(bholley): Make bindgen generate Debug for all types.
%if style_struct.gecko_ffi_name in "nsStyleBorder nsStyleDisplay nsStyleList nsStyleBackground "\ %if style_struct.gecko_ffi_name in ("nsStyle" + x for x in "Border Display List Background Font SVGReset".split()):
"nsStyleFont nsStyleSVGReset".split():
impl Debug for ${style_struct.gecko_struct_name} { impl Debug for ${style_struct.gecko_struct_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 {