mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731.
This commit is contained in:
parent
d13172845c
commit
171469c27c
14 changed files with 128 additions and 120 deletions
|
@ -129,14 +129,14 @@ impl ToLayout for Rect<Au> {
|
|||
}
|
||||
|
||||
impl ToLayout for SideOffsets2D<Au> {
|
||||
type Type = wr::BorderWidths;
|
||||
type Type = wr::LayoutSideOffsets;
|
||||
fn to_layout(&self) -> Self::Type {
|
||||
wr::BorderWidths {
|
||||
left: self.left.to_f32_px(),
|
||||
top: self.top.to_f32_px(),
|
||||
right: self.right.to_f32_px(),
|
||||
bottom: self.bottom.to_f32_px(),
|
||||
}
|
||||
wr::LayoutSideOffsets::new(
|
||||
self.top.to_f32_px(),
|
||||
self.right.to_f32_px(),
|
||||
self.bottom.to_f32_px(),
|
||||
self.left.to_f32_px(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue