Rename ReadGuards to StylesheetGuards

This commit is contained in:
Simon Sapin 2017-03-18 20:12:23 +01:00
parent 2952ccfae2
commit d5074136e3
8 changed files with 29 additions and 29 deletions

View file

@ -180,7 +180,7 @@ pub trait ToCssWithGuard {
/// Guards for a document
#[derive(Clone)]
pub struct ReadGuards<'a> {
pub struct StylesheetGuards<'a> {
/// For author-origin stylesheets
pub author: &'a SharedRwLockReadGuard<'a>,
@ -188,10 +188,10 @@ pub struct ReadGuards<'a> {
pub ua_or_user: &'a SharedRwLockReadGuard<'a>,
}
impl<'a> ReadGuards<'a> {
impl<'a> StylesheetGuards<'a> {
/// Same guard for all origins
pub fn same(guard: &'a SharedRwLockReadGuard<'a>) -> Self {
ReadGuards {
StylesheetGuards {
author: guard,
ua_or_user: guard,
}