mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
Return &Device instead of &Arc<Device>
This commit is contained in:
parent
e3d9c7449a
commit
fb755838ca
1 changed files with 1 additions and 3 deletions
|
@ -108,8 +108,6 @@ pub struct Stylist {
|
||||||
element_map: PerPseudoElementSelectorMap,
|
element_map: PerPseudoElementSelectorMap,
|
||||||
|
|
||||||
/// The rule tree, that stores the results of selector matching.
|
/// The rule tree, that stores the results of selector matching.
|
||||||
///
|
|
||||||
/// FIXME(emilio): Not `pub`!
|
|
||||||
rule_tree: RuleTree,
|
rule_tree: RuleTree,
|
||||||
|
|
||||||
/// The selector maps corresponding to a given pseudo-element
|
/// The selector maps corresponding to a given pseudo-element
|
||||||
|
@ -1067,7 +1065,7 @@ impl Stylist {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Accessor for a shared reference to the device.
|
/// Accessor for a shared reference to the device.
|
||||||
pub fn device(&self) -> &Arc<Device> {
|
pub fn device(&self) -> &Device {
|
||||||
&self.device
|
&self.device
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue