Update border rendering

This commit is contained in:
Eric Atkinson 2013-05-30 18:08:41 -07:00 committed by Patrick Walton
parent f1fcd4d323
commit cddf67a0e6

View file

@ -165,12 +165,12 @@ impl RenderBox {
let border_width = border.top;
let bounds = Rect {
origin: Point2D {
x: abs_bounds.origin.x - border_width / Au(2),
y: abs_bounds.origin.y - border_width / Au(2),
x: abs_bounds.origin.x,
y: abs_bounds.origin.y,
},
size: Size2D {
width: abs_bounds.size.width + border_width,
height: abs_bounds.size.height + border_width
width: abs_bounds.size.width,
height: abs_bounds.size.height
}
};