mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove some at-pointers that are not actually needed. (Selector matching)
This commit is contained in:
parent
071ad13ac7
commit
8eb2bbb81a
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ impl Stylist {
|
|||
for selector in style_rule.selectors.iter() {
|
||||
// TODO: avoid copying?
|
||||
rules.$priority.push(Rule {
|
||||
selector: @(*selector).clone(),
|
||||
selector: selector.clone(),
|
||||
declarations: Arc::new(style_rule.declarations.$priority.clone()),
|
||||
})
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ impl Stylist {
|
|||
macro_rules! append(
|
||||
($rules: expr) => {
|
||||
for rule in $rules.iter() {
|
||||
if matches_selector::<N, T, E>(rule.selector, element, pseudo_element) {
|
||||
if matches_selector::<N, T, E>(&rule.selector, element, pseudo_element) {
|
||||
applicable_declarations.push(rule.declarations.clone())
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ impl PerOriginRules {
|
|||
|
||||
#[deriving(Clone)]
|
||||
struct Rule {
|
||||
selector: @Selector,
|
||||
selector: Selector,
|
||||
declarations: Arc<~[PropertyDeclaration]>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue