mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Move parse method of PropertyDeclaration to ParsedDeclaration
This is what it now returns.
This commit is contained in:
parent
9d663ea7af
commit
4b4a873c3e
5 changed files with 93 additions and 93 deletions
|
@ -67,7 +67,7 @@ use style::gecko_properties::{self, style_structs};
|
|||
use style::keyframes::KeyframesStepValue;
|
||||
use style::parallel;
|
||||
use style::parser::{ParserContext, ParserContextExtraData};
|
||||
use style::properties::{ComputedValues, Importance, PropertyDeclaration};
|
||||
use style::properties::{ComputedValues, Importance, ParsedDeclaration};
|
||||
use style::properties::{PropertyDeclarationBlock, PropertyId};
|
||||
use style::properties::animated_properties::{AnimationValue, Interpolate, TransitionProperty};
|
||||
use style::properties::parse_one_declaration;
|
||||
|
@ -713,7 +713,7 @@ pub extern "C" fn Servo_ParseProperty(property: *const nsACString, value: *const
|
|||
Box::new(StdoutErrorReporter),
|
||||
extra_data);
|
||||
|
||||
match PropertyDeclaration::parse(id, &context, &mut Parser::new(value), false) {
|
||||
match ParsedDeclaration::parse(id, &context, &mut Parser::new(value), false) {
|
||||
Ok(parsed) => {
|
||||
let mut declarations = Vec::new();
|
||||
parsed.expand(|d| declarations.push((d, Importance::Normal)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue