mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update to cssparser 0.19, count line numbers during tokenization
This commit is contained in:
parent
32f835260c
commit
7382dad939
33 changed files with 145 additions and 196 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use cssparser::{Parser, SourcePosition};
|
||||
use cssparser::SourceLocation;
|
||||
use euclid::ScaleFactor;
|
||||
use euclid::TypedSize2D;
|
||||
use servo_arc::Arc;
|
||||
|
@ -21,12 +21,10 @@ use style_traits::ToCss;
|
|||
pub struct CSSErrorReporterTest;
|
||||
|
||||
impl ParseErrorReporter for CSSErrorReporterTest {
|
||||
fn report_error<'a>(&self,
|
||||
_input: &mut Parser,
|
||||
_position: SourcePosition,
|
||||
_error: ContextualParseError<'a>,
|
||||
_url: &ServoUrl,
|
||||
_line_number_offset: u64) {
|
||||
fn report_error(&self,
|
||||
_url: &ServoUrl,
|
||||
_location: SourceLocation,
|
||||
_error: ContextualParseError) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue