Auto merge of #13671 - emilio:flag-madness, r=Manishearth

stylo: Fix GeckoNode::is_element implementation.

<!-- Please describe your changes on the following line: -->

r? @Manishearth

<!-- 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/13671)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-10-10 04:06:23 -05:00 committed by GitHub
commit 48f75bf2f6

View file

@ -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 {