mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Work around a bug in rustc.
This commit is contained in:
parent
061e58797b
commit
1704daccb7
1 changed files with 3 additions and 2 deletions
|
@ -360,8 +360,9 @@ impl LineboxScanner {
|
||||||
debug!("LineboxScanner: Setting horizontal offsets for boxes in line %u range: %?",
|
debug!("LineboxScanner: Setting horizontal offsets for boxes in line %u range: %?",
|
||||||
self.line_spans.len(), line_span);
|
self.line_spans.len(), line_span);
|
||||||
for uint::range(line_span.start as uint, (line_span.start + line_span.len) as uint) |i| {
|
for uint::range(line_span.start as uint, (line_span.start + line_span.len) as uint) |i| {
|
||||||
boxes[i].d().position.origin.x = offset_x;
|
let box_data = &boxes[i].d();
|
||||||
offset_x += boxes[i].d().position.size.width;
|
box_data.position.origin.x = offset_x;
|
||||||
|
offset_x += box_data.position.size.width;
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear line and add line mapping
|
// clear line and add line mapping
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue