Auto merge of #18276 - tromey:cssparser-line-number-offset, r=SimonSapin

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.

---

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #_N/A_ (github issue number if applicable).

- [ ] There are tests for these changes OR
- [x] These changes do not require tests because pre-existing tests cover this change.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18276)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-08-28 22:57:13 -05:00 committed by GitHub
commit 4804e211e8
11 changed files with 26 additions and 60 deletions

View file

@ -98,7 +98,7 @@ impl HTMLStyleElement {
shared_lock, Some(&loader),
win.css_error_reporter(),
doc.quirks_mode(),
self.line_number);
self.line_number as u32);
let sheet = Arc::new(sheet);