aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylesheet_set.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-22 13:19:51 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 12:00:26 +0200
commite4f34fde1bbddffdf1bd6e5157f9aee416938b8d (patch)
tree4f60805ee1f12afe3c2be37ddd4fb7097ae8305b /components/style/stylesheet_set.rs
parent9df1c2f2cc25f77499bc5792547d11cf9db405eb (diff)
downloadservo-e4f34fde1bbddffdf1bd6e5157f9aee416938b8d.tar.gz
servo-e4f34fde1bbddffdf1bd6e5157f9aee416938b8d.zip
Rename StylesheetSet to StylesheetSetRef
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r--components/style/stylesheet_set.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs
index 1abc527bbdd..ed0f5781061 100644
--- a/components/style/stylesheet_set.rs
+++ b/components/style/stylesheet_set.rs
@@ -374,7 +374,7 @@ where
}
/// Functionality common to DocumentStylesheetSet and AuthorStylesheetSet.
-pub enum StylesheetSet<'a, S>
+pub enum StylesheetSetRef<'a, S>
where
S: StylesheetInDocument + PartialEq + 'static,
{
@@ -384,7 +384,7 @@ where
Document(&'a mut DocumentStylesheetSet<S>),
}
-impl<'a, S> StylesheetSet<'a, S>
+impl<'a, S> StylesheetSetRef<'a, S>
where
S: StylesheetInDocument + PartialEq + 'static,
{
@@ -398,8 +398,8 @@ where
guard: &SharedRwLockReadGuard,
) {
match self {
- StylesheetSet::Author(set) => set.append_stylesheet(device, sheet, guard),
- StylesheetSet::Document(set) => set.append_stylesheet(device, sheet, guard),
+ StylesheetSetRef::Author(set) => set.append_stylesheet(device, sheet, guard),
+ StylesheetSetRef::Document(set) => set.append_stylesheet(device, sheet, guard),
}
}
@@ -412,10 +412,10 @@ where
guard: &SharedRwLockReadGuard,
) {
match self {
- StylesheetSet::Author(set) => {
+ StylesheetSetRef::Author(set) => {
set.insert_stylesheet_before(device, sheet, before_sheet, guard)
},
- StylesheetSet::Document(set) => {
+ StylesheetSetRef::Document(set) => {
set.insert_stylesheet_before(device, sheet, before_sheet, guard)
},
}
@@ -429,8 +429,8 @@ where
guard: &SharedRwLockReadGuard,
) {
match self {
- StylesheetSet::Author(set) => set.remove_stylesheet(device, sheet, guard),
- StylesheetSet::Document(set) => set.remove_stylesheet(device, sheet, guard),
+ StylesheetSetRef::Author(set) => set.remove_stylesheet(device, sheet, guard),
+ StylesheetSetRef::Document(set) => set.remove_stylesheet(device, sheet, guard),
}
}
}