mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
layout: Make geom.rs
logical geoemetry types more ergonomic (#32633)
Make using the logical geometry types more ergonomic by having them all implement `Copy` (at most 4 64-bit numbers), similar to what `euclid` does. In addition add an implementation of `Neg` for `LogicalVec` and `LogicalSides` as it will be used in upcoming table implementation code.
This commit is contained in:
parent
e9cf4d4971
commit
adc0fc984d
10 changed files with 80 additions and 102 deletions
|
@ -617,7 +617,7 @@ impl<'a> BuilderForBoxFragment<'a> {
|
|||
|
||||
let radii = inner_radii(
|
||||
self.border_radius,
|
||||
(&self.fragment.border + &self.fragment.padding)
|
||||
(self.fragment.border + self.fragment.padding)
|
||||
.to_physical(self.fragment.style.writing_mode)
|
||||
.to_webrender(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue