From 72d773293746c2f35032be17f6bd2c1d9dc59004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 10 Oct 2016 10:58:08 +0200 Subject: [PATCH] stylo: Fix GeckoNode::is_element implementation. Because I'm stupid. --- components/style/gecko/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 407ff4694e4..f33bc88bd13 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -187,7 +187,7 @@ impl BitOr for GeckoRestyleDamage { impl<'ln> NodeInfo for GeckoNode<'ln> { fn is_element(&self) -> bool { use gecko_bindings::structs::nsINode_BooleanFlag; - self.0.mBoolFlags & nsINode_BooleanFlag::NodeIsElement as u32 != 0 + self.0.mBoolFlags & (1u32 << nsINode_BooleanFlag::NodeIsElement as u32) != 0 } fn is_text_node(&self) -> bool {