mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Introduce Chrome UI privilege for parsers
The motivation is that Chrome XBL stylesheets can be parsed under author level, but we allow some event-state pseudo classes like :-moz-handled-clicktoplay to be used. Also synchronize the privilege of pseudo classes in non_ts_pseudo_class_list.rs and nsCSSPseudoClassList.h (except :fullscreen). MozReview-Commit-ID: 8fUjjC8hbQO
This commit is contained in:
parent
fd3b399d26
commit
585c00f235
8 changed files with 63 additions and 23 deletions
|
@ -93,6 +93,7 @@ impl CSSStyleRuleMethods for CSSStyleRule {
|
|||
let parser = SelectorParser {
|
||||
stylesheet_origin: Origin::Author,
|
||||
namespaces: &namespaces,
|
||||
url_data: None,
|
||||
};
|
||||
let mut css_parser = CssParserInput::new(&*value);
|
||||
let mut css_parser = CssParser::new(&mut css_parser);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue