mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
style: Reformat recent changes.
This commit is contained in:
parent
7c96aed31d
commit
f76acc84c6
30 changed files with 330 additions and 191 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
use crate::gecko_bindings::structs::{Matrix4x4Components, nsresult};
|
||||
use crate::gecko_bindings::structs::{nsresult, Matrix4x4Components};
|
||||
use crate::stylesheets::RulesMutateError;
|
||||
use crate::values::computed::transform::Matrix3D;
|
||||
|
||||
|
|
|
@ -318,7 +318,9 @@ impl Device {
|
|||
let mut right = 0.0;
|
||||
let mut bottom = 0.0;
|
||||
let mut left = 0.0;
|
||||
unsafe { bindings::Gecko_GetSafeAreaInsets(pc, &mut top, &mut right, &mut bottom, &mut left) };
|
||||
unsafe {
|
||||
bindings::Gecko_GetSafeAreaInsets(pc, &mut top, &mut right, &mut bottom, &mut left)
|
||||
};
|
||||
SideOffsets2D::new(top, right, bottom, left)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ impl NonTSPseudoClass {
|
|||
#[inline]
|
||||
fn is_enabled_in_content(&self) -> bool {
|
||||
if matches!(*self, NonTSPseudoClass::FocusVisible) {
|
||||
return static_prefs::pref!("layout.css.focus-visible.enabled")
|
||||
return static_prefs::pref!("layout.css.focus-visible.enabled");
|
||||
}
|
||||
!self.has_any_flag(NonTSPseudoClassFlag::PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME)
|
||||
}
|
||||
|
|
|
@ -93,13 +93,7 @@ pub(super) fn each_exported_part(
|
|||
None => return,
|
||||
};
|
||||
let mut length = 0;
|
||||
let atoms = unsafe {
|
||||
bindings::Gecko_Element_ExportedParts(
|
||||
attr,
|
||||
name.as_ptr(),
|
||||
&mut length,
|
||||
)
|
||||
};
|
||||
let atoms = unsafe { bindings::Gecko_Element_ExportedParts(attr, name.as_ptr(), &mut length) };
|
||||
if atoms.is_null() {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue