diff --git a/components/style/parser.rs b/components/style/parser.rs index 81effece0a6..e38602144ef 100644 --- a/components/style/parser.rs +++ b/components/style/parser.rs @@ -82,27 +82,6 @@ impl<'a> ParserContext<'a> { } } - /// Create a parser context for on-the-fly parsing in CSSOM - #[inline] - pub fn new_for_cssom( - url_data: &'a UrlExtraData, - rule_type: Option, - parsing_mode: ParsingMode, - quirks_mode: QuirksMode, - error_reporter: Option<&'a dyn ParseErrorReporter>, - use_counters: Option<&'a UseCounters>, - ) -> Self { - Self::new( - Origin::Author, - url_data, - rule_type, - parsing_mode, - quirks_mode, - error_reporter, - use_counters, - ) - } - /// Create a parser context based on a previous context, but with a modified /// rule type. #[inline] diff --git a/components/style/properties/declaration_block.rs b/components/style/properties/declaration_block.rs index 7bae033c9d4..eef63d2d29e 100644 --- a/components/style/properties/declaration_block.rs +++ b/components/style/properties/declaration_block.rs @@ -1288,6 +1288,7 @@ pub fn parse_one_declaration_into( declarations: &mut SourcePropertyDeclaration, id: PropertyId, input: &str, + origin: Origin, url_data: &UrlExtraData, error_reporter: Option<&dyn ParseErrorReporter>, parsing_mode: ParsingMode, @@ -1295,7 +1296,7 @@ pub fn parse_one_declaration_into( rule_type: CssRuleType, ) -> Result<(), ()> { let context = ParserContext::new( - Origin::Author, + origin, url_data, Some(rule_type), parsing_mode,