style: Kill -servo-under-display-none.

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-09-17 00:17:58 +02:00
parent 7d91b30172
commit 2c88248b87
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 8 additions and 43 deletions

View file

@ -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")]