mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17: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
|
@ -15,7 +15,7 @@ use error_reporting::ContextualParseError;
|
|||
use euclid::TypedSize2D;
|
||||
use font_metrics::get_metrics_provider_for_product;
|
||||
use media_queries::Device;
|
||||
use parser::{Parse, ParserContext, log_css_error};
|
||||
use parser::{Parse, ParserContext};
|
||||
use properties::StyleBuilder;
|
||||
use selectors::parser::SelectorParseError;
|
||||
use shared_lock::{SharedRwLockReadGuard, ToCssWithGuard};
|
||||
|
@ -360,10 +360,8 @@ impl Parse for ViewportRule {
|
|||
}
|
||||
}
|
||||
Err(err) => {
|
||||
let pos = err.span.start;
|
||||
let error = ContextualParseError::UnsupportedViewportDescriptorDeclaration(
|
||||
parser.input.slice(err.span), err.error);
|
||||
log_css_error(parser.input, pos, error, &context);
|
||||
let error = ContextualParseError::UnsupportedViewportDescriptorDeclaration(err.slice, err.error);
|
||||
context.log_css_error(err.location, error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue