mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Improve Au(0)
constructions (#33709)
This replaces `Au(0)` with `Au::zero()` and other utility functions when possible. Signed-off-by: hackerbirds <120066692+hackerbirds@users.noreply.github.com>
This commit is contained in:
parent
c6d305fbb3
commit
a591778a25
7 changed files with 20 additions and 16 deletions
|
@ -875,7 +875,7 @@ impl LayoutThread {
|
|||
root_flow.overflow.scroll.size
|
||||
};
|
||||
|
||||
let origin = Rect::new(Point2D::new(Au(0), Au(0)), root_size).to_layout();
|
||||
let origin = Rect::new(Point2D::zero(), root_size).to_layout();
|
||||
build_state.root_stacking_context.bounds = origin;
|
||||
build_state.root_stacking_context.overflow = origin;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue