mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Replace some Point2D::new(0, 0)
instances with Point2D::zero()
(#33783)
Signed-off-by: hackerbirds <120066692+hackerbirds@users.noreply.github.com>
This commit is contained in:
parent
b58cee48ce
commit
1668b12ded
4 changed files with 5 additions and 5 deletions
|
@ -612,7 +612,7 @@ impl CanvasState {
|
|||
dh: f64,
|
||||
) -> (Rect<f64>, Rect<f64>) {
|
||||
let image_rect = Rect::new(
|
||||
Point2D::new(0f64, 0f64),
|
||||
Point2D::zero(),
|
||||
Size2D::new(image_size.width, image_size.height),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue