Skip to content

Provide ParserInput::new_with_line_number_offset #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

tromey
Copy link
Contributor

@tromey tromey commented Aug 24, 2017

This patch adds ParserInput::new_with_line_number_offset, a new
constructor that calls Tokenizer::with_first_line_number. Servo has its
own code for tracking the initial line number, but that code can be
replaced by this.


This change is Reviewable

This patch adds ParserInput::new_with_line_number_offset, a new
constructor that calls Tokenizer::with_first_line_number.  Servo has its
own code for tracking the initial line number, but that code can be
replaced by this.
@SimonSapin
Copy link
Member

Oh yes, I meant to do that when adding Tokenizer::with_first_line_number but forgot. Thanks!

(Note however that current cssparser versions cause test failures in Servo and Gecko and cannot land there at the moment. I’m working on that in servo/servo#18171.)

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 4d42b6a has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 4d42b6a with merge a161e1f...

bors-servo pushed a commit that referenced this pull request Aug 24, 2017
Provide ParserInput::new_with_line_number_offset

This patch adds ParserInput::new_with_line_number_offset, a new
constructor that calls Tokenizer::with_first_line_number.  Servo has its
own code for tracking the initial line number, but that code can be
replaced by this.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/184)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: SimonSapin
Pushing a161e1f to master...

@bors-servo bors-servo merged commit 4d42b6a into servo:master Aug 24, 2017
@tromey
Copy link
Contributor Author

tromey commented Aug 24, 2017

(Note however that current cssparser versions cause test failures in Servo and Gecko and cannot land there at the moment. I’m working on that in servo/servo#18171.)

Thanks. I've CC'd myself on that bug. I'll wait until it is resolved, and then submit my servo PR.

@tromey tromey deleted the new-with-line-number branch August 24, 2017 13:27
@tromey
Copy link
Contributor Author

tromey commented Aug 24, 2017

You can see it here: https://github.com/tromey/servo/tree/cssparser-line-number-offset

Not ready for merge of course, at least Cargo.lock isn't updated.

@SimonSapin
Copy link
Member

servo/servo#18171 has some extra failures that are specific to changes in that PR, but I think cssparser changes can land now, with #185 and version 0.19.5. I’m doing that in https://bugzilla.mozilla.org/show_bug.cgi?id=1393967.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants