Unrevert the fix for hit testing through shadows

This was originally #9428 but got accidentally reverted during rebase in

Fixes #9865.
This commit is contained in:
Jack Moffitt 2016-03-03 17:04:55 -07:00
parent 55fc48e4c4
commit f7aa6a32e9

View file

@ -1314,7 +1314,8 @@ impl DisplayItem {
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!
let interior_rect =
Rect::new(
@ -1332,6 +1333,12 @@ impl DisplayItem {
return;
}
}
DisplayItem::BoxShadowClass(_) => {
// Box shadows can never be hit.
return
}
_ => {}
}
// We found a hit!
result.push(base_item.metadata);