mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Move all PropertyDeclarationBlock from RwLock<_> to Locked<_>
This commit is contained in:
parent
aeffca2a59
commit
1bacd0eb15
28 changed files with 321 additions and 208 deletions
|
@ -11,9 +11,9 @@ use app_units::Au;
|
|||
use cssparser::{self, Color, RGBA};
|
||||
use euclid::num::Zero;
|
||||
use num_traits::ToPrimitive;
|
||||
use parking_lot::RwLock;
|
||||
use properties::PropertyDeclarationBlock;
|
||||
use servo_url::ServoUrl;
|
||||
use shared_lock::Locked;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::str::FromStr;
|
||||
use std::sync::Arc;
|
||||
|
@ -61,7 +61,7 @@ pub enum AttrValue {
|
|||
/// declarationblock for longer than needed.
|
||||
Declaration(String,
|
||||
#[cfg_attr(feature = "servo", ignore_heap_size_of = "Arc")]
|
||||
Arc<RwLock<PropertyDeclarationBlock>>)
|
||||
Arc<Locked<PropertyDeclarationBlock>>)
|
||||
}
|
||||
|
||||
/// Shared implementation to parse an integer according to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue