mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
style: Avoid being so Arc-happy in the custom properties code.
This commit is contained in:
parent
65d9b345bb
commit
2adfd84636
7 changed files with 88 additions and 79 deletions
|
@ -322,15 +322,6 @@ impl ComputedValuesInner {
|
|||
self.visited_style.as_ref().map(|x| x.clone_arc())
|
||||
}
|
||||
|
||||
/// Gets a reference to the custom properties map (if one exists).
|
||||
pub fn get_custom_properties(&self) -> Option<<&::custom_properties::CustomPropertiesMap> {
|
||||
self.custom_properties.as_ref().map(|x| &**x)
|
||||
}
|
||||
|
||||
pub fn custom_properties(&self) -> Option<Arc<CustomPropertiesMap>> {
|
||||
self.custom_properties.clone()
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn has_moz_binding(&self) -> bool {
|
||||
!self.get_box().gecko.mBinding.mPtr.mRawPtr.is_null()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue