Remove stray use of pathfinder_geometry

This commit is contained in:
Antonio Scandurra 2021-03-25 18:19:20 +01:00
parent e44ea6b379
commit 1cb987d489

View file

@ -2,7 +2,10 @@ use crate::{
color::ColorU, color::ColorU,
font_cache::FamilyId, font_cache::FamilyId,
fonts::Properties, fonts::Properties,
geometry::vector::{vec2f, Vector2F}, geometry::{
rect::RectF,
vector::{vec2f, Vector2F},
},
text_layout::Line, text_layout::Line,
AfterLayoutContext, Element, Event, EventContext, LayoutContext, PaintContext, SizeConstraint, AfterLayoutContext, Element, Event, EventContext, LayoutContext, PaintContext, SizeConstraint,
}; };
@ -127,7 +130,7 @@ impl Element for Label {
fn paint( fn paint(
&mut self, &mut self,
bounds: pathfinder_geometry::rect::RectF, bounds: RectF,
layout: &mut Self::LayoutState, layout: &mut Self::LayoutState,
ctx: &mut PaintContext, ctx: &mut PaintContext,
) -> Self::PaintState { ) -> Self::PaintState {
@ -137,7 +140,7 @@ impl Element for Label {
fn dispatch_event( fn dispatch_event(
&mut self, &mut self,
_: &Event, _: &Event,
_: pathfinder_geometry::rect::RectF, _: RectF,
_: &mut Self::LayoutState, _: &mut Self::LayoutState,
_: &mut Self::PaintState, _: &mut Self::PaintState,
_: &mut EventContext, _: &mut EventContext,