mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
stylo: Fix GeckoNode::is_element implementation.
Because I'm stupid.
This commit is contained in:
parent
b110eb394e
commit
72d7732937
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ impl BitOr for GeckoRestyleDamage {
|
||||||
impl<'ln> NodeInfo for GeckoNode<'ln> {
|
impl<'ln> NodeInfo for GeckoNode<'ln> {
|
||||||
fn is_element(&self) -> bool {
|
fn is_element(&self) -> bool {
|
||||||
use gecko_bindings::structs::nsINode_BooleanFlag;
|
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 {
|
fn is_text_node(&self) -> bool {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue