diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-03-05 12:50:04 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-03-07 15:42:28 +0100 |
commit | ef4ea7cc497225615fd0d316c0b44f377871ad8b (patch) | |
tree | 509c66146d0301c65f916032975982ef1f005bb6 /components/style/stylesheet_set.rs | |
parent | 3b96fb2cbe8754b30646e8bd914806048c0b6db2 (diff) | |
download | servo-ef4ea7cc497225615fd0d316c0b44f377871ad8b.tar.gz servo-ef4ea7cc497225615fd0d316c0b44f377871ad8b.zip |
style: Separate the XBL and shadow dom styling bits.
Bug: 1441022
Reviewed-by: xidorn
MozReview-Commit-ID: 2W0BmZ8wWXg
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r-- | components/style/stylesheet_set.rs | 7 |
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, |