Run rustfmt on selectors, servo_arc, and style.

This was generated with:

./mach cargo fmt --package selectors &&
./mach cargo fmt --package servo_arc &&
./mach cargo fmt --package style

Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
This commit is contained in:
Bobby Holley 2018-04-10 17:35:15 -07:00
parent f7ae1a37e3
commit c99bcdd4b8
181 changed files with 9981 additions and 7933 deletions

View file

@ -16,7 +16,6 @@ use stylesheet_set::AuthorStylesheetSet;
use stylesheets::StylesheetInDocument;
use stylist::CascadeData;
/// A set of author stylesheets and their computed representation, such as the
/// ones used for ShadowRoot and XBL.
pub struct AuthorStyles<S>
@ -57,27 +56,20 @@ where
device: &Device,
quirks_mode: QuirksMode,
guard: &SharedRwLockReadGuard,
)
where
) where
E: TElement,
S: ToMediaListKey,
{
let flusher = self.stylesheets.flush::<E>(
/* host = */ None,
/* snapshot_map = */ None,
);
let flusher = self.stylesheets
.flush::<E>(/* host = */ None, /* snapshot_map = */ None);
if flusher.sheets.dirty() {
self.quirks_mode = quirks_mode;
}
// Ignore OOM.
let _ = self.data.rebuild(
device,
quirks_mode,
flusher.sheets,
guard,
);
let _ = self.data
.rebuild(device, quirks_mode, flusher.sheets, guard);
}
}