Auto merge of #17841 - ferjm:bug1380890.column, r=jdm

stylo: make GetRuleColumn report a 1-based value

https://bugzilla.mozilla.org/show_bug.cgi?id=1380890

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- 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/17841)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-07-24 07:55:06 -07:00 committed by GitHub
commit 723b21b669
2 changed files with 7 additions and 6 deletions

View file

@ -515,6 +515,7 @@ fn get_location_with_offset(
) -> SourceLocation {
SourceLocation {
line: location.line + offset as u32,
column: location.column,
// Column offsets are not yet supported, but Gecko devtools expect 1-based columns.
column: location.column + 1,
}
}