aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylesheet_set.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-02-08 11:55:50 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-02-09 13:27:30 +0100
commitf1516d228f54d2ceed40ce894b3487ef4e6fbb3a (patch)
tree3e2f3013d578c13cdf213e8ff565067b3a1e2130 /components/style/stylesheet_set.rs
parent7e501f50f7ef71c6f877bb2ebbaaeaf0162b5f43 (diff)
downloadservo-f1516d228f54d2ceed40ce894b3487ef4e6fbb3a.tar.gz
servo-f1516d228f54d2ceed40ce894b3487ef4e6fbb3a.zip
style: Rename StylesheetSet to DocumentStylesheetSet.
MozReview-Commit-ID: 5Xl1eRLu1VF
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r--components/style/stylesheet_set.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs
index 0c3a985c26c..b2f44e1bed1 100644
--- a/components/style/stylesheet_set.rs
+++ b/components/style/stylesheet_set.rs
@@ -370,7 +370,7 @@ where
/// The set of stylesheets effective for a given document.
#[cfg_attr(feature = "servo", derive(MallocSizeOf))]
-pub struct StylesheetSet<S>
+pub struct DocumentStylesheetSet<S>
where
S: StylesheetInDocument + PartialEq + 'static,
{
@@ -387,13 +387,13 @@ where
author_style_disabled: bool,
}
-impl<S> StylesheetSet<S>
+impl<S> DocumentStylesheetSet<S>
where
S: StylesheetInDocument + PartialEq + 'static,
{
/// Create a new empty StylesheetSet.
pub fn new() -> Self {
- StylesheetSet {
+ Self {
collections: Default::default(),
invalidations: StylesheetInvalidationSet::new(),
origins_dirty: OriginSet::empty(),
@@ -438,7 +438,7 @@ where
sheet: S,
guard: &SharedRwLockReadGuard
) {
- debug!("StylesheetSet::append_stylesheet");
+ debug!("DocumentStylesheetSet::append_stylesheet");
self.collect_invalidations_for(device, &sheet, guard);
let origin = sheet.contents(guard).origin;
self.collections.borrow_mut_for_origin(&origin).append(sheet);
@@ -451,7 +451,7 @@ where
sheet: S,
guard: &SharedRwLockReadGuard
) {
- debug!("StylesheetSet::prepend_stylesheet");
+ debug!("DocumentStylesheetSet::prepend_stylesheet");
self.collect_invalidations_for(device, &sheet, guard);
let origin = sheet.contents(guard).origin;
@@ -466,7 +466,7 @@ where
before_sheet: S,
guard: &SharedRwLockReadGuard,
) {
- debug!("StylesheetSet::insert_stylesheet_before");
+ debug!("DocumentStylesheetSet::insert_stylesheet_before");
self.collect_invalidations_for(device, &sheet, guard);
let origin = sheet.contents(guard).origin;
@@ -491,7 +491,7 @@ where
/// Notes that the author style has been disabled for this document.
pub fn set_author_style_disabled(&mut self, disabled: bool) {
- debug!("StylesheetSet::set_author_style_disabled");
+ debug!("DocumentStylesheetSet::set_author_style_disabled");
if self.author_style_disabled == disabled {
return;
}
@@ -517,7 +517,7 @@ where
{
use std::mem;
- debug!("StylesheetSet::flush");
+ debug!("DocumentStylesheetSet::flush");
let had_invalidations =
self.invalidations.flush(document_element, snapshots);
@@ -546,7 +546,7 @@ where
pub fn flush_without_invalidation(&mut self) -> OriginSet {
use std::mem;
- debug!("StylesheetSet::flush_without_invalidation");
+ debug!("DocumentStylesheetSet::flush_without_invalidation");
self.invalidations.clear();
mem::replace(&mut self.origins_dirty, OriginSet::empty())