aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style/selector_matching.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/style/selector_matching.rs')
-rw-r--r--src/components/style/selector_matching.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/style/selector_matching.rs b/src/components/style/selector_matching.rs
index f728b3dd7ed..03cc5aadad1 100644
--- a/src/components/style/selector_matching.rs
+++ b/src/components/style/selector_matching.rs
@@ -481,14 +481,14 @@ struct Rule {
/// we can sort them.
#[deriving(Clone)]
pub struct MatchedProperty {
- pub declarations: Arc<~[PropertyDeclaration]>,
+ pub declarations: Arc<Vec<PropertyDeclaration>>,
source_order: uint,
specificity: u32,
}
impl MatchedProperty {
#[inline]
- pub fn from_declarations(declarations: Arc<~[PropertyDeclaration]>) -> MatchedProperty {
+ pub fn from_declarations(declarations: Arc<Vec<PropertyDeclaration>>) -> MatchedProperty {
MatchedProperty {
declarations: declarations,
source_order: 0,
@@ -960,7 +960,7 @@ mod tests {
selector: s.compound_selectors.clone(),
property: MatchedProperty {
specificity: s.specificity,
- declarations: Arc::new(~[]),
+ declarations: Arc::new(Vec::new()),
source_order: i,
}
}