mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
297b3d04a4
An image or image map can't contain text, so it doesn't make sense to walk the lines of any children. Previously, for normal images (not image maps), we would find no children and thus return false because there were no children containing the point, thus breaking hit testing for images. For image maps, hit testing would fail for any points that weren't covered by areas. Now, we don't walk children in these cases, instead just using the element's rect. We apply this same rule for other inline elements without children, since there are no children to walk in that case and we should use the rect there rather than always returning false. I don't know if this last case is something that ever happens in practice, but I figured it was best to handle it just in case. Differential Revision: https://phabricator.services.mozilla.com/D193509 |
||
---|---|---|
.. | ||
android | ||
aom | ||
atk | ||
base | ||
basetypes | ||
docs | ||
generic | ||
html | ||
interfaces | ||
ipc | ||
mac | ||
other | ||
tests | ||
windows | ||
xpcom | ||
xul | ||
moz.build |