mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Use cssparser's new_with_line_number_offset
cssparser provides a way to set the initial line number on a ParserInput. This patch changes servo to use this facility, rather than reimplement the same functionality itself.
This commit is contained in:
parent
a266e96d28
commit
546ecaeee9
11 changed files with 26 additions and 60 deletions
|
@ -57,7 +57,7 @@ fn parse_rules(css: &str) -> Vec<(StyleSource, CascadeLevel)> {
|
|||
None,
|
||||
&ErrorringErrorReporter,
|
||||
QuirksMode::NoQuirks,
|
||||
0u64);
|
||||
0);
|
||||
let guard = s.shared_lock.read();
|
||||
let rules = s.contents.rules.read_with(&guard);
|
||||
rules.0.iter().filter_map(|rule| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue