mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
style: Kill -servo-under-display-none.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
7d91b30172
commit
2c88248b87
5 changed files with 8 additions and 43 deletions
|
@ -2026,6 +2026,13 @@ impl ComputedValues {
|
|||
pub fn visited_rules(&self) -> Option<<&StrongRuleNode> {
|
||||
self.visited_style.as_ref().and_then(|s| s.rules.as_ref())
|
||||
}
|
||||
|
||||
/// Returns whether we're in a display: none subtree.
|
||||
pub fn is_in_display_none_subtree(&self) -> bool {
|
||||
use properties::computed_value_flags::IS_IN_DISPLAY_NONE_SUBTREE;
|
||||
|
||||
self.flags.contains(IS_IN_DISPLAY_NONE_SUBTREE)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue