mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: use Au
in BoxFragment
(#31794)
* use au in BoxFragement * review fix
This commit is contained in:
parent
0b863de846
commit
95e69fe4ff
13 changed files with 98 additions and 100 deletions
|
@ -140,6 +140,18 @@ impl ToWebRender for PhysicalSides<Length> {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToWebRender for PhysicalSides<Au> {
|
||||
type Type = units::LayoutSideOffsets;
|
||||
fn to_webrender(&self) -> Self::Type {
|
||||
units::LayoutSideOffsets::new(
|
||||
self.top.to_f32_px(),
|
||||
self.right.to_f32_px(),
|
||||
self.bottom.to_f32_px(),
|
||||
self.left.to_f32_px(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl ToWebRender for ComputedTextDecorationStyle {
|
||||
type Type = LineStyle;
|
||||
fn to_webrender(&self) -> Self::Type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue