Skip to content

Commit

Permalink
Drop RulesChanged
Browse files Browse the repository at this point in the history
It's no longer used.
  • Loading branch information
Hiroyuki Ikezoe committed Sep 20, 2017
1 parent 6a791cd commit 1ff9f70
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions components/style/matching.rs
Expand Up @@ -81,30 +81,6 @@ impl ChildCascadeRequirement {
}
}

bitflags! {
/// Flags that represent the result of replace_rules.
pub flags RulesChanged: u8 {
/// Normal rules are changed.
const NORMAL_RULES_CHANGED = 0x01,
/// Important rules are changed.
const IMPORTANT_RULES_CHANGED = 0x02,
}
}

impl RulesChanged {
/// Return true if there are any normal rules changed.
#[inline]
pub fn normal_rules_changed(&self) -> bool {
self.contains(NORMAL_RULES_CHANGED)
}

/// Return true if there are any important rules changed.
#[inline]
pub fn important_rules_changed(&self) -> bool {
self.contains(IMPORTANT_RULES_CHANGED)
}
}

/// Determines which styles are being cascaded currently.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum CascadeVisitedMode {
Expand Down

0 comments on commit 1ff9f70

Please sign in to comment.