mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix hit testing with stacking contexts (apparent since transforms landed).
This commit is contained in:
parent
a521755607
commit
ad0ffac81b
1 changed files with 3 additions and 0 deletions
|
@ -469,6 +469,9 @@ impl StackingContext {
|
|||
}
|
||||
}
|
||||
|
||||
// Convert the point into stacking context local space
|
||||
point = point - self.bounds.origin;
|
||||
|
||||
debug_assert!(!topmost_only || result.is_empty());
|
||||
let frac_point = self.transform.transform_point(&Point2D(point.x.to_frac32_px(),
|
||||
point.y.to_frac32_px()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue