aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-19 19:41:07 -0500
committerGitHub <noreply@github.com>2016-07-19 19:41:07 -0500
commit3a9fca619d10c62be804f12b05de1df4afe556c9 (patch)
treeb568a653b3631178b7d69d3c1325c4666d4e9610
parentefa5a0329aecc159c3cdc1e278278077b9270a40 (diff)
parent7dee298003eea9659f7375464471e191a4c679dc (diff)
downloadservo-3a9fca619d10c62be804f12b05de1df4afe556c9.tar.gz
servo-3a9fca619d10c62be804f12b05de1df4afe556c9.zip
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 -->
-rw-r--r--ports/geckolib/properties.mako.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs
index 7dddde7aa0e..0228c471e66 100644
--- a/ports/geckolib/properties.mako.rs
+++ b/ports/geckolib/properties.mako.rs
@@ -401,8 +401,7 @@ impl Clone for ${style_struct.gecko_struct_name} {
}
// FIXME(bholley): Make bindgen generate Debug for all types.
-%if style_struct.gecko_ffi_name in "nsStyleBorder nsStyleDisplay nsStyleList nsStyleBackground "\
- "nsStyleFont nsStyleSVGReset".split():
+%if style_struct.gecko_ffi_name in ("nsStyle" + x for x in "Border Display List Background Font SVGReset".split()):
impl Debug for ${style_struct.gecko_struct_name} {
// FIXME(bholley): Generate this.
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {