aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/parser.rs
diff options
context:
space:
mode:
authorBastien Orivel <eijebong@bananium.fr>2017-10-09 17:03:40 +0200
committerBastien Orivel <eijebong@bananium.fr>2017-10-19 15:01:17 +0200
commite8e2d0a4b24475b018dbc7e59ea46fdceaf20815 (patch)
treebd56b4a2fc203150ee5c3b5e163937fb3b4e1989 /components/style/parser.rs
parent4cf2ce66fc4f970a47ab1fb4b9aa1a55282640f7 (diff)
downloadservo-e8e2d0a4b24475b018dbc7e59ea46fdceaf20815.tar.gz
servo-e8e2d0a4b24475b018dbc7e59ea46fdceaf20815.zip
Update bitflags to 1.0 in every servo crate
It still needs dependencies update to remove all the other bitflags versions.
Diffstat (limited to 'components/style/parser.rs')
-rw-r--r--components/style/parser.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs
index 6e08d937b76..4237b3bf041 100644
--- a/components/style/parser.rs
+++ b/components/style/parser.rs
@@ -8,8 +8,6 @@ use context::QuirksMode;
use cssparser::{Parser, SourceLocation, UnicodeRange};
use error_reporting::{ParseErrorReporter, ContextualParseError};
use style_traits::{OneOrMoreSeparated, ParseError, ParsingMode, Separator};
-#[cfg(feature = "gecko")]
-use style_traits::{PARSING_MODE_DEFAULT, PARSING_MODE_ALLOW_UNITLESS_LENGTH, PARSING_MODE_ALLOW_ALL_NUMERIC_VALUES};
use stylesheets::{CssRuleType, Origin, UrlExtraData, Namespaces};
/// Asserts that all ParsingMode flags have a matching ParsingMode value in gecko.
@@ -19,7 +17,7 @@ pub fn assert_parsing_mode_match() {
use gecko_bindings::structs;
macro_rules! check_parsing_modes {
- ( $( $a:ident => $b:ident ),*, ) => {
+ ( $( $a:ident => $b:path ),*, ) => {
if cfg!(debug_assertions) {
let mut modes = ParsingMode::all();
$(
@@ -32,9 +30,9 @@ pub fn assert_parsing_mode_match() {
}
check_parsing_modes! {
- ParsingMode_Default => PARSING_MODE_DEFAULT,
- ParsingMode_AllowUnitlessLength => PARSING_MODE_ALLOW_UNITLESS_LENGTH,
- ParsingMode_AllowAllNumericValues => PARSING_MODE_ALLOW_ALL_NUMERIC_VALUES,
+ ParsingMode_Default => ParsingMode::DEFAULT,
+ ParsingMode_AllowUnitlessLength => ParsingMode::ALLOW_UNITLESS_LENGTH,
+ ParsingMode_AllowAllNumericValues => ParsingMode::ALLOW_ALL_NUMERIC_VALUES,
}
}