diff options
author | Cameron McCormack <cam@mcc.id.au> | 2019-01-12 06:45:45 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-01-13 21:59:07 +0100 |
commit | 5bf0eea1f834e5154652fc59edc6f5854d389d70 (patch) | |
tree | 0cc42d3456fcbaf8dad4736b2e38e0a85106cab6 /components/style/stylesheet_set.rs | |
parent | 2b77a29697840f64201f6a5a3080dbdfb83ac9eb (diff) | |
download | servo-5bf0eea1f834e5154652fc59edc6f5854d389d70.tar.gz servo-5bf0eea1f834e5154652fc59edc6f5854d389d70.zip |
style: Remove ServoStyleSet::PrependStyleSheet.
Differential Revision: https://phabricator.services.mozilla.com/D16284
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r-- | components/style/stylesheet_set.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs index 507534edc15..35060a959d6 100644 --- a/components/style/stylesheet_set.rs +++ b/components/style/stylesheet_set.rs @@ -345,14 +345,6 @@ where self.data_validity = cmp::max(validity, self.data_validity); } - fn prepend(&mut self, sheet: S) { - debug_assert!(!self.contains(&sheet)); - // Inserting stylesheets somewhere but at the end changes the validity - // of the cascade data, but not the invalidation data. - self.set_data_validity_at_least(DataValidity::CascadeInvalid); - self.entries.insert(0, StylesheetSetEntry::new(sheet)); - } - /// Returns an iterator over the current list of stylesheets. fn iter(&self) -> StylesheetCollectionIterator<S> { StylesheetCollectionIterator(self.entries.iter()) @@ -417,20 +409,6 @@ macro_rules! sheet_set_methods { collection.append(sheet); } - /// Prepend a new stylesheet to the current set. - pub fn prepend_stylesheet( - &mut self, - device: Option<&Device>, - sheet: S, - guard: &SharedRwLockReadGuard, - ) { - debug!(concat!($set_name, "::prepend_stylesheet")); - self.collect_invalidations_for(device, &sheet, guard); - - let collection = self.collection_for(&sheet, guard); - collection.prepend(sheet); - } - /// Insert a given stylesheet before another stylesheet in the document. pub fn insert_stylesheet_before( &mut self, |