diff --git a/components/layout_2020/display_list/conversions.rs b/components/layout_2020/display_list/conversions.rs index b5e7dd2a898..a5389752fcb 100644 --- a/components/layout_2020/display_list/conversions.rs +++ b/components/layout_2020/display_list/conversions.rs @@ -7,7 +7,7 @@ use style::color::AbsoluteColor; use style::computed_values::mix_blend_mode::T as ComputedMixBlendMode; use style::computed_values::text_decoration_style::T as ComputedTextDecorationStyle; use style::computed_values::transform_style::T as ComputedTransformStyle; -use style::values::computed::{Filter as ComputedFilter, Length}; +use style::values::computed::Filter as ComputedFilter; use webrender_api::{units, FilterOp, LineStyle, MixBlendMode, Shadow, TransformStyle}; use crate::geom::{PhysicalPoint, PhysicalRect, PhysicalSides, PhysicalSize}; @@ -80,13 +80,6 @@ impl ToWebRender for ComputedTransformStyle { } } -impl ToWebRender for PhysicalPoint { - type Type = units::LayoutPoint; - fn to_webrender(&self) -> Self::Type { - units::LayoutPoint::new(self.x.px(), self.y.px()) - } -} - impl ToWebRender for PhysicalPoint { type Type = units::LayoutPoint; fn to_webrender(&self) -> Self::Type { @@ -94,13 +87,6 @@ impl ToWebRender for PhysicalPoint { } } -impl ToWebRender for PhysicalSize { - type Type = units::LayoutSize; - fn to_webrender(&self) -> Self::Type { - units::LayoutSize::new(self.width.px(), self.height.px()) - } -} - impl ToWebRender for PhysicalSize { type Type = units::LayoutSize; fn to_webrender(&self) -> Self::Type { @@ -108,16 +94,6 @@ impl ToWebRender for PhysicalSize { } } -impl ToWebRender for PhysicalRect { - type Type = units::LayoutRect; - fn to_webrender(&self) -> Self::Type { - units::LayoutRect::from_origin_and_size( - self.origin.to_webrender(), - self.size.to_webrender(), - ) - } -} - impl ToWebRender for PhysicalRect { type Type = units::LayoutRect; fn to_webrender(&self) -> Self::Type {