mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Move ParsingMode into style_traits.
This commit is contained in:
parent
849bdc958c
commit
8bfed4cb3c
23 changed files with 73 additions and 62 deletions
|
@ -10,11 +10,11 @@ use media_queries::CSSErrorReporterTest;
|
|||
use style::context::QuirksMode;
|
||||
use style::font_metrics::ServoMetricsProvider;
|
||||
use style::media_queries::{Device, MediaType};
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext};
|
||||
use style::parser::ParserContext;
|
||||
use style::properties::{ComputedValues, StyleBuilder};
|
||||
use style::stylesheets::{CssRuleType, Origin};
|
||||
use style::values::computed::{Context, ToComputedValue};
|
||||
use style_traits::{ToCss, ParseError};
|
||||
use style_traits::{PARSING_MODE_DEFAULT, ToCss, ParseError};
|
||||
|
||||
fn parse<T, F>(f: F, s: &'static str) -> Result<T, ParseError<'static>>
|
||||
where F: for<'t> Fn(&ParserContext, &mut Parser<'static, 't>) -> Result<T, ParseError<'static>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue