mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
stylo: make GetRuleColumn report a 1-based value
This commit is contained in:
parent
a56bd4663b
commit
5cabb0f86b
2 changed files with 7 additions and 6 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue