mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Use selectors::SelectorList
This commit is contained in:
parent
81a3de3299
commit
f044659b7c
5 changed files with 19 additions and 35 deletions
|
@ -63,7 +63,7 @@ fn test_parse_stylesheet() {
|
|||
url: NsAtom::from("http://www.w3.org/1999/xhtml")
|
||||
}))),
|
||||
CssRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
selectors: vec![
|
||||
selectors: SelectorList(vec![
|
||||
Selector {
|
||||
complex_selector: Arc::new(ComplexSelector {
|
||||
compound_selector: vec![
|
||||
|
@ -89,7 +89,7 @@ fn test_parse_stylesheet() {
|
|||
pseudo_element: None,
|
||||
specificity: (0 << 20) + (1 << 10) + (1 << 0),
|
||||
},
|
||||
],
|
||||
]),
|
||||
block: Arc::new(RwLock::new(PropertyDeclarationBlock {
|
||||
declarations: vec![
|
||||
(PropertyDeclaration::Display(DeclaredValue::Value(
|
||||
|
@ -102,7 +102,7 @@ fn test_parse_stylesheet() {
|
|||
})),
|
||||
}))),
|
||||
CssRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
selectors: vec![
|
||||
selectors: SelectorList(vec![
|
||||
Selector {
|
||||
complex_selector: Arc::new(ComplexSelector {
|
||||
compound_selector: vec![
|
||||
|
@ -137,7 +137,7 @@ fn test_parse_stylesheet() {
|
|||
pseudo_element: None,
|
||||
specificity: (0 << 20) + (0 << 10) + (1 << 0),
|
||||
},
|
||||
],
|
||||
]),
|
||||
block: Arc::new(RwLock::new(PropertyDeclarationBlock {
|
||||
declarations: vec![
|
||||
(PropertyDeclaration::Display(DeclaredValue::Value(
|
||||
|
@ -148,7 +148,7 @@ fn test_parse_stylesheet() {
|
|||
})),
|
||||
}))),
|
||||
CssRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
selectors: vec![
|
||||
selectors: SelectorList(vec![
|
||||
Selector {
|
||||
complex_selector: Arc::new(ComplexSelector {
|
||||
compound_selector: vec![
|
||||
|
@ -172,7 +172,7 @@ fn test_parse_stylesheet() {
|
|||
pseudo_element: None,
|
||||
specificity: (1 << 20) + (1 << 10) + (0 << 0),
|
||||
},
|
||||
],
|
||||
]),
|
||||
block: Arc::new(RwLock::new(PropertyDeclarationBlock {
|
||||
declarations: vec![
|
||||
(PropertyDeclaration::BackgroundColor(DeclaredValue::Value(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue