mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
This commit is contained in:
parent
cf616b90a2
commit
16c7060bc8
153 changed files with 2095 additions and 1298 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use std::{cmp, iter};
|
||||
use std::ascii::{AsciiExt, OwnedAsciiExt};
|
||||
use sync::Arc;
|
||||
use std::sync::Arc;
|
||||
|
||||
use cssparser::ast::*;
|
||||
use cssparser::ast::ComponentValue::*;
|
||||
|
@ -16,6 +16,7 @@ use string_cache::{Atom, Namespace};
|
|||
use namespaces::NamespaceMap;
|
||||
|
||||
/// Ambient data used by the parser.
|
||||
#[deriving(Copy)]
|
||||
pub struct ParserContext {
|
||||
/// The origin of this stylesheet.
|
||||
pub origin: StylesheetOrigin,
|
||||
|
@ -28,7 +29,7 @@ pub struct Selector {
|
|||
pub specificity: u32,
|
||||
}
|
||||
|
||||
#[deriving(Eq, PartialEq, Clone, Hash)]
|
||||
#[deriving(Eq, PartialEq, Clone, Hash, Copy)]
|
||||
pub enum PseudoElement {
|
||||
Before,
|
||||
After,
|
||||
|
@ -43,7 +44,7 @@ pub struct CompoundSelector {
|
|||
pub next: Option<(Box<CompoundSelector>, Combinator)>, // c.next is left of c
|
||||
}
|
||||
|
||||
#[deriving(PartialEq, Clone)]
|
||||
#[deriving(PartialEq, Clone, Copy)]
|
||||
pub enum Combinator {
|
||||
Child, // >
|
||||
Descendant, // space
|
||||
|
@ -93,7 +94,7 @@ pub enum SimpleSelector {
|
|||
}
|
||||
|
||||
|
||||
#[deriving(Eq, PartialEq, Clone, Hash)]
|
||||
#[deriving(Eq, PartialEq, Clone, Hash, Copy)]
|
||||
pub enum CaseSensitivity {
|
||||
CaseSensitive, // Selectors spec says language-defined, but HTML says sensitive.
|
||||
CaseInsensitive,
|
||||
|
@ -667,7 +668,7 @@ fn skip_whitespace<I: Iterator<ComponentValue>>(iter: &mut Iter<I>) -> bool {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use sync::Arc;
|
||||
use std::sync::Arc;
|
||||
use cssparser;
|
||||
use namespaces::NamespaceMap;
|
||||
use selector_matching::StylesheetOrigin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue