aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-04-03 17:10:50 -0500
committerGitHub <noreply@github.com>2017-04-03 17:10:50 -0500
commit806584da9ac923feaac1d4c22ca030d75c26c31d (patch)
treeb64798a01aad8a74eb1e31127b4b716e797412c8
parentb6b6608ca3a46113bb488e4da835b4ee743299fd (diff)
parent3ac0dd05cf6089f501f2c7cf29792bbcd892dc62 (diff)
downloadservo-806584da9ac923feaac1d4c22ca030d75c26c31d.tar.gz
servo-806584da9ac923feaac1d4c22ca030d75c26c31d.zip
Auto merge of #16247 - servo:for_cssom, r=jdm
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. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16247) <!-- Reviewable:end -->
-rw-r--r--components/style/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs
index 941946399ff..024d71de936 100644
--- a/components/style/parser.rs
+++ b/components/style/parser.rs
@@ -39,7 +39,7 @@ impl<'a> ParserContext<'a> {
pub fn new_for_cssom(url_data: &'a UrlExtraData,
error_reporter: &'a ParseErrorReporter)
-> ParserContext<'a> {
- Self::new(Origin::User, url_data, error_reporter)
+ Self::new(Origin::Author, url_data, error_reporter)
}
}