aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <hikezoe@mozilla.com>2017-09-21 08:44:29 +0900
committerHiroyuki Ikezoe <hikezoe@mozilla.com>2017-09-21 08:45:55 +0900
commit1ff9f70f2aaf0d1f37d412c9f1c8c9700b62a394 (patch)
treeb2b5d78958da52c686d8cce524212b354cf232d9
parent6a791cd7f26b42a6688099bea203c21fb3c9cc12 (diff)
downloadservo-1ff9f70f2aaf0d1f37d412c9f1c8c9700b62a394.tar.gz
servo-1ff9f70f2aaf0d1f37d412c9f1c8c9700b62a394.zip
Drop RulesChanged
It's no longer used.
-rw-r--r--components/style/matching.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/components/style/matching.rs b/components/style/matching.rs
index 826b5d3bfce..9018727f996 100644
--- a/components/style/matching.rs
+++ b/components/style/matching.rs
@@ -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 {