mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Auto merge of #9866 - metajack:refix-shadow-hit-test, r=pcwalton
Unrevert the fix for hit testing through shadows This was originally #9428 but got accidentally reverted during rebase in Fixes #9865. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9866) <!-- Reviewable:end -->
This commit is contained in:
commit
12466b8706
1 changed files with 19 additions and 12 deletions
|
@ -1314,7 +1314,8 @@ impl DisplayItem {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let DisplayItem::BorderClass(ref border) = *self {
|
match *self {
|
||||||
|
DisplayItem::BorderClass(ref border) => {
|
||||||
// If the point is inside the border, it didn't hit the border!
|
// If the point is inside the border, it didn't hit the border!
|
||||||
let interior_rect =
|
let interior_rect =
|
||||||
Rect::new(
|
Rect::new(
|
||||||
|
@ -1332,6 +1333,12 @@ impl DisplayItem {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DisplayItem::BoxShadowClass(_) => {
|
||||||
|
// Box shadows can never be hit.
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
|
||||||
// We found a hit!
|
// We found a hit!
|
||||||
result.push(base_item.metadata);
|
result.push(base_item.metadata);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue