mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Move Arc<RwLock<_>> out from CssRules tuple
This commit is contained in:
parent
40917e7991
commit
599eb1c9f0
9 changed files with 58 additions and 62 deletions
|
@ -18,7 +18,7 @@ use gecko_bindings::sugar::ns_style_coord::{CoordDataValue, CoordDataMut};
|
|||
use gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI};
|
||||
use parking_lot::RwLock;
|
||||
use properties::{ComputedValues, PropertyDeclarationBlock};
|
||||
use stylesheets::{CssRule, Stylesheet, StyleRule};
|
||||
use stylesheets::{CssRules, Stylesheet, StyleRule};
|
||||
use values::computed::{CalcLengthOrPercentage, Gradient, Image, LengthOrPercentage, LengthOrPercentageOrAuto};
|
||||
|
||||
unsafe impl HasFFI for Stylesheet {
|
||||
|
@ -35,10 +35,10 @@ unsafe impl HasFFI for RwLock<PropertyDeclarationBlock> {
|
|||
}
|
||||
unsafe impl HasArcFFI for RwLock<PropertyDeclarationBlock> {}
|
||||
|
||||
unsafe impl HasFFI for RwLock<Vec<CssRule>> {
|
||||
unsafe impl HasFFI for RwLock<CssRules> {
|
||||
type FFIType = ServoCssRules;
|
||||
}
|
||||
unsafe impl HasArcFFI for RwLock<Vec<CssRule>> {}
|
||||
unsafe impl HasArcFFI for RwLock<CssRules> {}
|
||||
|
||||
unsafe impl HasFFI for RwLock<StyleRule> {
|
||||
type FFIType = RawServoStyleRule;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue