mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Make some removed assertions Servo-only instead.
This commit is contained in:
parent
87f7b29d65
commit
864fe8a9a7
2 changed files with 10 additions and 0 deletions
|
@ -248,6 +248,9 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
|
|||
/// the element has no style.
|
||||
fn is_display_none(&self) -> bool {
|
||||
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());
|
||||
data.styles().is_display_none()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue