mirror of
https://github.com/servo/servo.git
synced 2025-10-02 09:39:14 +01:00
Check context to test keyframe rule_type
Now that the `context` contains the `rule_type`, we can remove the `in_keyframe` arg and check the `rule_type` to achieve the same thing. MozReview-Commit-ID: oXrFBPuKMz
This commit is contained in:
parent
997015a4f7
commit
1ae1d370f2
5 changed files with 8 additions and 9 deletions
|
@ -952,7 +952,7 @@ pub extern "C" fn Servo_ParseProperty(property: *const nsACString, value: *const
|
|||
let reporter = StdoutErrorReporter;
|
||||
let context = ParserContext::new(Origin::Author, url_data, &reporter, Some(CssRuleType::Style));
|
||||
|
||||
match ParsedDeclaration::parse(id, &context, &mut Parser::new(value), false) {
|
||||
match ParsedDeclaration::parse(id, &context, &mut Parser::new(value)) {
|
||||
Ok(parsed) => {
|
||||
let global_style_data = &*GLOBAL_STYLE_DATA;
|
||||
let mut block = PropertyDeclarationBlock::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue