mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename LengthParsingMode to ParsingMode and LengthParsingMode::SVG to PasingMode::AllowUnitlessLength.
We need another flag that represents allow-negative-number for SMIL, so this enum will also comprise the another parsing mode that allows negative number.
This commit is contained in:
parent
b80d4acef4
commit
fcc50ea421
23 changed files with 85 additions and 85 deletions
|
@ -17,7 +17,7 @@ use dom_struct::dom_struct;
|
|||
use servo_url::ServoUrl;
|
||||
use std::ascii::AsciiExt;
|
||||
use style::attr::AttrValue;
|
||||
use style::parser::LengthParsingMode;
|
||||
use style::parser::ParsingMode;
|
||||
use style::properties::{Importance, PropertyDeclarationBlock, PropertyId, LonghandId, ShorthandId};
|
||||
use style::properties::{parse_one_declaration, parse_style_attribute};
|
||||
use style::selector_parser::PseudoElement;
|
||||
|
@ -260,7 +260,7 @@ impl CSSStyleDeclaration {
|
|||
let result =
|
||||
parse_one_declaration(id, &value, &self.owner.base_url(),
|
||||
window.css_error_reporter(),
|
||||
LengthParsingMode::Default,
|
||||
ParsingMode::Default,
|
||||
quirks_mode);
|
||||
|
||||
// Step 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue