mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: A few minor formatting cleanups.
This commit is contained in:
parent
48ce204cb2
commit
4763d05cf0
2 changed files with 30 additions and 15 deletions
|
@ -61,13 +61,14 @@ pub struct ParserContext<'a> {
|
|||
|
||||
impl<'a> ParserContext<'a> {
|
||||
/// Create a parser context.
|
||||
pub fn new(stylesheet_origin: Origin,
|
||||
url_data: &'a UrlExtraData,
|
||||
error_reporter: &'a ParseErrorReporter,
|
||||
rule_type: Option<CssRuleType>,
|
||||
parsing_mode: ParsingMode,
|
||||
quirks_mode: QuirksMode)
|
||||
-> ParserContext<'a> {
|
||||
pub fn new(
|
||||
stylesheet_origin: Origin,
|
||||
url_data: &'a UrlExtraData,
|
||||
error_reporter: &'a ParseErrorReporter,
|
||||
rule_type: Option<CssRuleType>,
|
||||
parsing_mode: ParsingMode,
|
||||
quirks_mode: QuirksMode,
|
||||
) -> ParserContext<'a> {
|
||||
ParserContext {
|
||||
stylesheet_origin: stylesheet_origin,
|
||||
url_data: url_data,
|
||||
|
@ -88,7 +89,14 @@ impl<'a> ParserContext<'a> {
|
|||
parsing_mode: ParsingMode,
|
||||
quirks_mode: QuirksMode
|
||||
) -> ParserContext<'a> {
|
||||
Self::new(Origin::Author, url_data, error_reporter, rule_type, parsing_mode, quirks_mode)
|
||||
Self::new(
|
||||
Origin::Author,
|
||||
url_data,
|
||||
error_reporter,
|
||||
rule_type,
|
||||
parsing_mode,
|
||||
quirks_mode,
|
||||
)
|
||||
}
|
||||
|
||||
/// Create a parser context based on a previous context, but with a modified rule type.
|
||||
|
@ -115,7 +123,7 @@ impl<'a> ParserContext<'a> {
|
|||
error_reporter: &'a ParseErrorReporter,
|
||||
line_number_offset: u64,
|
||||
parsing_mode: ParsingMode,
|
||||
quirks_mode: QuirksMode
|
||||
quirks_mode: QuirksMode,
|
||||
) -> ParserContext<'a> {
|
||||
ParserContext {
|
||||
stylesheet_origin: stylesheet_origin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue