mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Apply transformation in Path::contains_point()
This commit is contained in:
parent
c8025c9147
commit
d6f46b5513
1 changed files with 5 additions and 2 deletions
|
@ -187,8 +187,11 @@ impl Path {
|
||||||
))))
|
))))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn contains_point(&self, x: f64, y: f64, _path_transform: &Transform2D<f32>) -> bool {
|
pub fn contains_point(&self, x: f64, y: f64, path_transform: &Transform2D<f32>) -> bool {
|
||||||
self.as_raqote().contains_point(0.1, x as f32, y as f32)
|
self.as_raqote()
|
||||||
|
.clone()
|
||||||
|
.transform(path_transform)
|
||||||
|
.contains_point(0., x as f32, y as f32)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn copy_to_builder(&self) -> Box<dyn GenericPathBuilder> {
|
pub fn copy_to_builder(&self) -> Box<dyn GenericPathBuilder> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue