style: Reformat recent changes.

This commit is contained in:
Emilio Cobos Álvarez 2019-03-12 17:02:19 +01:00
parent 9a8cee2800
commit 5aeab7adb1
17 changed files with 70 additions and 53 deletions

View file

@ -116,10 +116,7 @@ impl Device {
};
unsafe {
bindings::Gecko_AnimationNameMayBeReferencedFromStyle(
pc,
name.as_atom().as_ptr(),
)
bindings::Gecko_AnimationNameMayBeReferencedFromStyle(pc, name.as_atom().as_ptr())
}
}
@ -169,7 +166,12 @@ impl Device {
#[inline]
pub fn pres_context(&self) -> Option<&structs::nsPresContext> {
unsafe {
self.document().mPresShell.as_ref()?.mPresContext.mRawPtr.as_ref()
self.document()
.mPresShell
.as_ref()?
.mPresContext
.mRawPtr
.as_ref()
}
}
@ -268,9 +270,8 @@ impl Device {
if doc.mIsBeingUsedAsImage() {
return true;
}
let document_color_use = unsafe {
structs::StaticPrefs_sVarCache_browser_display_document_color_use
};
let document_color_use =
unsafe { structs::StaticPrefs_sVarCache_browser_display_document_color_use };
let prefs = self.pref_sheet_prefs();
match document_color_use {
1 => true,