mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Remove a bunch of unused style bits.
Bug: 1464060 MozReview-Commit-ID: FLACqfSHfSO
This commit is contained in:
parent
2c1ec89943
commit
6b19318cc8
3 changed files with 0 additions and 18 deletions
|
@ -41,10 +41,6 @@ bitflags! {
|
|||
/// A flag used to mark styles which are a pseudo-element or under one.
|
||||
const IS_IN_PSEUDO_ELEMENT_SUBTREE = 1 << 4;
|
||||
|
||||
/// A flag used to mark styles which are in a display: none subtree, or
|
||||
/// under one.
|
||||
const IS_IN_DISPLAY_NONE_SUBTREE = 1 << 5;
|
||||
|
||||
/// Whether this style inherits the `display` property.
|
||||
///
|
||||
/// This is important because it may affect our optimizations to avoid
|
||||
|
@ -77,7 +73,6 @@ impl ComputedValueFlags {
|
|||
ComputedValueFlags::IS_STYLE_IF_VISITED |
|
||||
ComputedValueFlags::IS_RELEVANT_LINK_VISITED |
|
||||
ComputedValueFlags::CAN_BE_FRAGMENTED |
|
||||
ComputedValueFlags::IS_IN_DISPLAY_NONE_SUBTREE |
|
||||
ComputedValueFlags::IS_IN_PSEUDO_ELEMENT_SUBTREE |
|
||||
ComputedValueFlags::HAS_TEXT_DECORATION_LINES
|
||||
}
|
||||
|
|
|
@ -2537,13 +2537,6 @@ impl ComputedValues {
|
|||
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::ComputedValueFlags;
|
||||
|
||||
self.flags.contains(ComputedValueFlags::IS_IN_DISPLAY_NONE_SUBTREE)
|
||||
}
|
||||
|
||||
/// Gets a reference to the custom properties map (if one exists).
|
||||
pub fn custom_properties(&self) -> Option<<&Arc<::custom_properties::CustomPropertiesMap>> {
|
||||
self.custom_properties.as_ref()
|
||||
|
|
|
@ -204,12 +204,6 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
.insert(ComputedValueFlags::HAS_TEXT_DECORATION_LINES);
|
||||
}
|
||||
|
||||
if display == Display::None {
|
||||
self.style
|
||||
.flags
|
||||
.insert(ComputedValueFlags::IS_IN_DISPLAY_NONE_SUBTREE);
|
||||
}
|
||||
|
||||
if self.style.is_pseudo_element() {
|
||||
self.style
|
||||
.flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue