mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
ParserContext::new_for_cssom is used for author origin, not user.
This probably doesn’t make any difference since the only thing we do with this origin is test whether it is user-agent (for internal properties), but this is more correct.
This commit is contained in:
parent
679b418937
commit
3ac0dd05cf
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ impl<'a> ParserContext<'a> {
|
||||||
pub fn new_for_cssom(url_data: &'a UrlExtraData,
|
pub fn new_for_cssom(url_data: &'a UrlExtraData,
|
||||||
error_reporter: &'a ParseErrorReporter)
|
error_reporter: &'a ParseErrorReporter)
|
||||||
-> ParserContext<'a> {
|
-> ParserContext<'a> {
|
||||||
Self::new(Origin::User, url_data, error_reporter)
|
Self::new(Origin::Author, url_data, error_reporter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue