mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update border rendering
This commit is contained in:
parent
f1fcd4d323
commit
cddf67a0e6
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue