mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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,9 +10,10 @@ use dom::bindings::str::DOMString;
|
|||
use dom::window::Window;
|
||||
use dom_struct::dom_struct;
|
||||
use style::context::QuirksMode;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext};
|
||||
use style::parser::ParserContext;
|
||||
use style::stylesheets::CssRuleType;
|
||||
use style::stylesheets::supports_rule::{Declaration, parse_condition_or_declaration};
|
||||
use style_traits::PARSING_MODE_DEFAULT;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct CSS {
|
||||
|
|
|
@ -16,11 +16,11 @@ use dom::medialist::MediaList;
|
|||
use dom::window::Window;
|
||||
use dom_struct::dom_struct;
|
||||
use style::media_queries::parse_media_query_list;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext};
|
||||
use style::parser::ParserContext;
|
||||
use style::shared_lock::{Locked, ToCssWithGuard};
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::{CssRuleType, MediaRule};
|
||||
use style_traits::ToCss;
|
||||
use style_traits::{PARSING_MODE_DEFAULT, ToCss};
|
||||
|
||||
#[dom_struct]
|
||||
pub struct CSSMediaRule {
|
||||
|
|
|
@ -17,13 +17,12 @@ use dom_struct::dom_struct;
|
|||
use servo_url::ServoUrl;
|
||||
use std::ascii::AsciiExt;
|
||||
use style::attr::AttrValue;
|
||||
use style::parser::PARSING_MODE_DEFAULT;
|
||||
use style::properties::{Importance, PropertyDeclarationBlock, PropertyId, LonghandId, ShorthandId};
|
||||
use style::properties::{parse_one_declaration_into, parse_style_attribute, SourcePropertyDeclaration};
|
||||
use style::selector_parser::PseudoElement;
|
||||
use style::shared_lock::Locked;
|
||||
use style::stylearc::Arc;
|
||||
use style_traits::ToCss;
|
||||
use style_traits::{PARSING_MODE_DEFAULT, ToCss};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
|
||||
#[dom_struct]
|
||||
|
|
|
@ -13,12 +13,12 @@ use dom::cssrule::SpecificCSSRule;
|
|||
use dom::cssstylesheet::CSSStyleSheet;
|
||||
use dom::window::Window;
|
||||
use dom_struct::dom_struct;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext};
|
||||
use style::parser::ParserContext;
|
||||
use style::shared_lock::{Locked, ToCssWithGuard};
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::{CssRuleType, SupportsRule};
|
||||
use style::stylesheets::supports_rule::SupportsCondition;
|
||||
use style_traits::ToCss;
|
||||
use style_traits::{PARSING_MODE_DEFAULT, ToCss};
|
||||
|
||||
#[dom_struct]
|
||||
pub struct CSSSupportsRule {
|
||||
|
|
|
@ -32,10 +32,11 @@ use std::cell::Cell;
|
|||
use std::default::Default;
|
||||
use style::attr::AttrValue;
|
||||
use style::media_queries::parse_media_query_list;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext as CssParserContext};
|
||||
use style::parser::ParserContext as CssParserContext;
|
||||
use style::str::HTML_SPACE_CHARACTERS;
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::{CssRuleType, Stylesheet};
|
||||
use style_traits::PARSING_MODE_DEFAULT;
|
||||
use stylesheet_loader::{StylesheetLoader, StylesheetContextSource, StylesheetOwner};
|
||||
|
||||
unsafe_no_jsmanaged_fields!(Stylesheet);
|
||||
|
|
|
@ -23,9 +23,10 @@ use net_traits::ReferrerPolicy;
|
|||
use script_layout_interface::message::Msg;
|
||||
use std::cell::Cell;
|
||||
use style::media_queries::parse_media_query_list;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext as CssParserContext};
|
||||
use style::parser::ParserContext as CssParserContext;
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::{CssRuleType, Stylesheet, Origin};
|
||||
use style_traits::PARSING_MODE_DEFAULT;
|
||||
use stylesheet_loader::{StylesheetLoader, StylesheetOwner};
|
||||
|
||||
#[dom_struct]
|
||||
|
|
|
@ -14,11 +14,11 @@ use dom::window::Window;
|
|||
use dom_struct::dom_struct;
|
||||
use style::media_queries::{MediaQuery, parse_media_query_list};
|
||||
use style::media_queries::MediaList as StyleMediaList;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext};
|
||||
use style::parser::ParserContext;
|
||||
use style::shared_lock::{SharedRwLock, Locked};
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::CssRuleType;
|
||||
use style_traits::ToCss;
|
||||
use style_traits::{PARSING_MODE_DEFAULT, ToCss};
|
||||
|
||||
#[dom_struct]
|
||||
pub struct MediaList {
|
||||
|
|
|
@ -107,12 +107,13 @@ use std::sync::mpsc::TryRecvError::{Disconnected, Empty};
|
|||
use style::context::ReflowGoal;
|
||||
use style::error_reporting::ParseErrorReporter;
|
||||
use style::media_queries;
|
||||
use style::parser::{PARSING_MODE_DEFAULT, ParserContext as CssParserContext};
|
||||
use style::parser::ParserContext as CssParserContext;
|
||||
use style::properties::PropertyId;
|
||||
use style::properties::longhands::overflow_x;
|
||||
use style::selector_parser::PseudoElement;
|
||||
use style::str::HTML_SPACE_CHARACTERS;
|
||||
use style::stylesheets::CssRuleType;
|
||||
use style_traits::PARSING_MODE_DEFAULT;
|
||||
use task_source::dom_manipulation::DOMManipulationTaskSource;
|
||||
use task_source::file_reading::FileReadingTaskSource;
|
||||
use task_source::history_traversal::HistoryTraversalTaskSource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue