mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Un-allow and fix warnings in components/layout_2020
This commit is contained in:
parent
6cd42bdcfb
commit
aa925a5984
13 changed files with 15 additions and 73 deletions
|
@ -141,17 +141,6 @@ impl flow_relative::Vec2<Length> {
|
|||
}
|
||||
}
|
||||
|
||||
impl flow_relative::Sides<Length> {
|
||||
pub fn zero() -> Self {
|
||||
Self {
|
||||
inline_start: Length::zero(),
|
||||
inline_end: Length::zero(),
|
||||
block_start: Length::zero(),
|
||||
block_end: Length::zero(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl flow_relative::Rect<Length> {
|
||||
pub fn zero() -> Self {
|
||||
Self {
|
||||
|
@ -244,16 +233,6 @@ impl<T> flow_relative::Sides<T> {
|
|||
{
|
||||
self.block_start + self.block_end
|
||||
}
|
||||
|
||||
pub fn start_corner(&self) -> flow_relative::Vec2<T>
|
||||
where
|
||||
T: Clone,
|
||||
{
|
||||
flow_relative::Vec2 {
|
||||
inline: self.inline_start.clone(),
|
||||
block: self.block_start.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl flow_relative::Sides<LengthPercentage> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue