mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Rename StylesheetSet to StylesheetSetRef
This commit is contained in:
parent
9df1c2f2cc
commit
e4f34fde1b
4 changed files with 17 additions and 17 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue