mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
auto merge of #5270 : glennw/servo/hit-test-stacking-context, r=pcwalton
This commit is contained in:
commit
fef439726a
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