mirror of
https://github.com/servo/servo.git
synced 2025-08-19 04:15:33 +01:00
style: Hook the use counters into StyleSheet parsing.
Still not hooked into telemetry, I talked with :janerik and :gfritzsche about that, but test incoming! This intentionally doesn't handle CSSOM and such for now, will file followups for those, though should be trivial. I want to unify / clean up how we do the use counters and the error reporting stuff for CSSOM, since the current function call still shows up in profiles, but that should be a follow-up. Differential Revision: https://phabricator.services.mozilla.com/D3828
This commit is contained in:
parent
c8e5b7f1b0
commit
89b8f30737
8 changed files with 25 additions and 1 deletions
|
@ -1203,6 +1203,7 @@ pub fn parse_style_attribute(
|
|||
ParsingMode::DEFAULT,
|
||||
quirks_mode,
|
||||
error_reporter,
|
||||
None,
|
||||
);
|
||||
|
||||
let mut input = ParserInput::new(input);
|
||||
|
@ -1230,6 +1231,7 @@ pub fn parse_one_declaration_into(
|
|||
parsing_mode,
|
||||
quirks_mode,
|
||||
error_reporter,
|
||||
None,
|
||||
);
|
||||
|
||||
let mut input = ParserInput::new(input);
|
||||
|
|
|
@ -1563,6 +1563,7 @@ impl UnparsedValue {
|
|||
ParsingMode::DEFAULT,
|
||||
quirks_mode,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
let mut input = ParserInput::new(&css);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue