mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
CSSRule -> CssRule
This commit is contained in:
parent
bfd4a0e5ff
commit
72c83c9394
5 changed files with 45 additions and 45 deletions
|
@ -10,7 +10,7 @@ use style::Atom;
|
|||
use style::error_reporting::ParseErrorReporter;
|
||||
use style::media_queries::*;
|
||||
use style::parser::ParserContextExtraData;
|
||||
use style::stylesheets::{Stylesheet, Origin, CSSRule};
|
||||
use style::stylesheets::{Stylesheet, Origin, CssRule};
|
||||
use style::values::specified;
|
||||
use url::Url;
|
||||
|
||||
|
@ -36,7 +36,7 @@ fn test_media_rule<F>(css: &str, callback: F) where F: Fn(&MediaList, &str) {
|
|||
assert!(rule_count > 0);
|
||||
}
|
||||
|
||||
fn media_queries<F>(rules: &[CSSRule], f: &mut F) where F: FnMut(&MediaList) {
|
||||
fn media_queries<F>(rules: &[CssRule], f: &mut F) where F: FnMut(&MediaList) {
|
||||
for rule in rules {
|
||||
rule.with_nested_rules_and_mq(|rules, mq| {
|
||||
if let Some(mq) = mq {
|
||||
|
|
|
@ -17,7 +17,7 @@ use style::parser::ParserContextExtraData;
|
|||
use style::properties::{PropertyDeclaration, PropertyDeclarationBlock, DeclaredValue, longhands};
|
||||
use style::properties::Importance;
|
||||
use style::properties::longhands::animation_play_state;
|
||||
use style::stylesheets::{Stylesheet, NamespaceRule, CSSRule, StyleRule, KeyframesRule, Origin};
|
||||
use style::stylesheets::{Stylesheet, NamespaceRule, CssRule, StyleRule, KeyframesRule, Origin};
|
||||
use style::values::specified::{LengthOrPercentageOrAuto, Percentage};
|
||||
use url::Url;
|
||||
|
||||
|
@ -57,11 +57,11 @@ fn test_parse_stylesheet() {
|
|||
media: Default::default(),
|
||||
dirty_on_viewport_size_change: false,
|
||||
rules: vec![
|
||||
CSSRule::Namespace(Arc::new(RwLock::new(NamespaceRule {
|
||||
CssRule::Namespace(Arc::new(RwLock::new(NamespaceRule {
|
||||
prefix: None,
|
||||
url: NsAtom::from("http://www.w3.org/1999/xhtml")
|
||||
}))),
|
||||
CSSRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
CssRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
selectors: vec![
|
||||
Selector {
|
||||
complex_selector: Arc::new(ComplexSelector {
|
||||
|
@ -100,7 +100,7 @@ fn test_parse_stylesheet() {
|
|||
important_count: 2,
|
||||
})),
|
||||
}))),
|
||||
CSSRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
CssRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
selectors: vec![
|
||||
Selector {
|
||||
complex_selector: Arc::new(ComplexSelector {
|
||||
|
@ -146,7 +146,7 @@ fn test_parse_stylesheet() {
|
|||
important_count: 0,
|
||||
})),
|
||||
}))),
|
||||
CSSRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
CssRule::Style(Arc::new(RwLock::new(StyleRule {
|
||||
selectors: vec![
|
||||
Selector {
|
||||
complex_selector: Arc::new(ComplexSelector {
|
||||
|
@ -222,7 +222,7 @@ fn test_parse_stylesheet() {
|
|||
important_count: 0,
|
||||
})),
|
||||
}))),
|
||||
CSSRule::Keyframes(Arc::new(RwLock::new(KeyframesRule {
|
||||
CssRule::Keyframes(Arc::new(RwLock::new(KeyframesRule {
|
||||
name: "foo".into(),
|
||||
keyframes: vec![
|
||||
Arc::new(RwLock::new(Keyframe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue