mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
Update rust-cssparser for visibility rules.
This commit is contained in:
parent
ddce8b8fa0
commit
23e3757db6
9 changed files with 15 additions and 10 deletions
|
@ -9,7 +9,8 @@ pub type CSSFloat = f64;
|
||||||
|
|
||||||
pub mod specified {
|
pub mod specified {
|
||||||
use std::ascii::StrAsciiExt;
|
use std::ascii::StrAsciiExt;
|
||||||
use cssparser::*;
|
use cssparser::ast;
|
||||||
|
use cssparser::ast::*;
|
||||||
use super::{Au, CSSFloat};
|
use super::{Au, CSSFloat};
|
||||||
pub use CSSColor = cssparser::Color;
|
pub use CSSColor = cssparser::Color;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use cssparser::{SyntaxError, SourceLocation};
|
use cssparser::ast::{SyntaxError, SourceLocation};
|
||||||
|
|
||||||
|
|
||||||
pub struct ErrorLoggerIterator<I>(I);
|
pub struct ErrorLoggerIterator<I>(I);
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use std::ascii::StrAsciiExt;
|
use std::ascii::StrAsciiExt;
|
||||||
use cssparser::*;
|
use cssparser::parse_rule_list;
|
||||||
|
use cssparser::ast::*;
|
||||||
|
|
||||||
use errors::{ErrorLoggerIterator, log_css_error};
|
use errors::{ErrorLoggerIterator, log_css_error};
|
||||||
use stylesheets::{CSSRule, CSSMediaRule, parse_style_rule, parse_nested_at_rule};
|
use stylesheets::{CSSRule, CSSMediaRule, parse_style_rule, parse_nested_at_rule};
|
||||||
use namespaces::NamespaceMap;
|
use namespaces::NamespaceMap;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use std::hashmap::HashMap;
|
use std::hashmap::HashMap;
|
||||||
use cssparser::*;
|
use cssparser::ast::*;
|
||||||
use errors::log_css_error;
|
use errors::log_css_error;
|
||||||
|
|
||||||
pub struct NamespaceMap {
|
pub struct NamespaceMap {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
use std::ascii::StrAsciiExt;
|
use std::ascii::StrAsciiExt;
|
||||||
use cssparser::*;
|
use cssparser::ast::{ComponentValue, Ident, SkipWhitespaceIterable};
|
||||||
|
|
||||||
|
|
||||||
pub fn one_component_value<'a>(input: &'a [ComponentValue]) -> Option<&'a ComponentValue> {
|
pub fn one_component_value<'a>(input: &'a [ComponentValue]) -> Option<&'a ComponentValue> {
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
|
|
||||||
use std::ascii::StrAsciiExt;
|
use std::ascii::StrAsciiExt;
|
||||||
pub use extra::arc::Arc;
|
pub use extra::arc::Arc;
|
||||||
pub use std::iter;
|
|
||||||
pub use cssparser::*;
|
pub use cssparser::*;
|
||||||
pub use errors::{ErrorLoggerIterator, log_css_error};
|
pub use cssparser::ast::*;
|
||||||
|
|
||||||
|
use errors::{ErrorLoggerIterator, log_css_error};
|
||||||
pub use parsing_utils::*;
|
pub use parsing_utils::*;
|
||||||
pub use self::common_types::*;
|
pub use self::common_types::*;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
use std::{vec, iter};
|
use std::{vec, iter};
|
||||||
use std::ascii::StrAsciiExt;
|
use std::ascii::StrAsciiExt;
|
||||||
use cssparser::*;
|
use cssparser::ast::*;
|
||||||
use namespaces::NamespaceMap;
|
use namespaces::NamespaceMap;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
use std::str;
|
use std::str;
|
||||||
use std::iter::Iterator;
|
use std::iter::Iterator;
|
||||||
use std::ascii::StrAsciiExt;
|
use std::ascii::StrAsciiExt;
|
||||||
use cssparser::*;
|
use cssparser::{tokenize, parse_stylesheet_rules, ToCss};
|
||||||
|
use cssparser::ast::*;
|
||||||
use selectors;
|
use selectors;
|
||||||
use properties;
|
use properties;
|
||||||
use errors::{ErrorLoggerIterator, log_css_error};
|
use errors::{ErrorLoggerIterator, log_css_error};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 03d7044a13a78a34db196e2bce48cb4826a144f3
|
Subproject commit 1a7b4ca6d368f6035a4135504f89d66c5e225d09
|
Loading…
Add table
Add a link
Reference in a new issue