stylo: make GetRuleColumn report a 1-based value

This commit is contained in:
Fernando Jiménez Moreno 2017-07-24 15:28:02 +02:00
parent a56bd4663b
commit 5cabb0f86b
2 changed files with 7 additions and 6 deletions

View file

@ -516,6 +516,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,
}
}