Fix feature check for Gecko-specific assertions.

This commit is contained in:
Cameron McCormack 2016-12-14 13:53:09 +08:00
parent 75c869d508
commit 33ac29e830
2 changed files with 2 additions and 2 deletions

View file

@ -250,7 +250,7 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
let data = self.borrow_data().unwrap();
// See the comment on `cascade_node` about getting the up-to-date parent
// style for why we allow this on Gecko.
debug_assert!(cfg!(gecko) || data.has_current_styles());
debug_assert!(cfg!(feature = "gecko") || data.has_current_styles());
data.styles().is_display_none()
}