mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
Remove get_location_with_offset
Now that rust-cssparser reports 1-based locations, bump the required cssparser version and remove get_location_with_offset. Previously, some code paths were not calling get_location_with_offset; see https://bugzilla.mozilla.org/show_bug.cgi?id=1398869 for some background.
This commit is contained in:
parent
61fac2c10d
commit
4768597b13
15 changed files with 31 additions and 41 deletions
|
@ -20,7 +20,7 @@ use std::fmt;
|
|||
use style_traits::{PARSING_MODE_DEFAULT, ToCss, ParseError, StyleParseError};
|
||||
use style_traits::PropertyDeclarationParseError;
|
||||
use stylesheets::{CssRuleType, StylesheetContents};
|
||||
use stylesheets::rule_parser::{VendorPrefix, get_location_with_offset};
|
||||
use stylesheets::rule_parser::VendorPrefix;
|
||||
use values::{KeyframesName, serialize_percentage};
|
||||
|
||||
/// A [`@keyframes`][keyframes] rule.
|
||||
|
@ -507,12 +507,11 @@ impl<'a, 'i, R: ParseErrorReporter> QualifiedRuleParser<'i> for KeyframeListPars
|
|||
fn parse_prelude<'t>(&mut self, input: &mut Parser<'i, 't>) -> Result<Self::Prelude, ParseError<'i>> {
|
||||
let start_position = input.position();
|
||||
let start_location = input.current_source_location();
|
||||
let location = get_location_with_offset(start_location);
|
||||
match KeyframeSelector::parse(input) {
|
||||
Ok(sel) => {
|
||||
Ok(KeyframeSelectorParserPrelude {
|
||||
selector: sel,
|
||||
source_location: location,
|
||||
source_location: start_location,
|
||||
})
|
||||
},
|
||||
Err(e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue