mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Reformat recent changes.
This commit is contained in:
parent
9a8cee2800
commit
5aeab7adb1
17 changed files with 70 additions and 53 deletions
|
@ -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,
|
||||
|
|
|
@ -1246,8 +1246,7 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
}
|
||||
|
||||
fn owner_doc_matches_for_testing(&self, device: &Device) -> bool {
|
||||
self.as_node().owner_doc().0 as *const structs::Document ==
|
||||
device.document() as *const _
|
||||
self.as_node().owner_doc().0 as *const structs::Document == device.document() as *const _
|
||||
}
|
||||
|
||||
fn style_attribute(&self) -> Option<ArcBorrow<Locked<PropertyDeclarationBlock>>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue