aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylesheet_set.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r--components/style/stylesheet_set.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs
index 56a384353bf..fbff5501882 100644
--- a/components/style/stylesheet_set.rs
+++ b/components/style/stylesheet_set.rs
@@ -263,7 +263,7 @@ where
Self {
entries: vec![],
data_validity: DataValidity::Valid,
- dirty: false,
+ dirty: true,
}
}
}
@@ -597,6 +597,11 @@ where
self.collection.dirty
}
+ /// Whether the collection is empty.
+ pub fn is_empty(&self) -> bool {
+ self.collection.len() == 0
+ }
+
fn collection_for(
&mut self,
_sheet: &S,