зеркало из https://github.com/mozilla/gecko-dev.git
4341d6fb0c
Currently, checking whether an `EventTarget` is `nsINode` (or its concrete classes) or not requires a QI, but it's expensive and used a lot while we handle each event. Therefore, it'd be nicer for creating a virtual method, `EventTarget::IsNode()` and use it for the check. If trying to convert `EventTarget` to a concrete class, it may require two virtual method calls. I'm not sure whether it's cheaper than a QI, but at least, it won't depend on the UUID check order of `QueryInterface()` when multiple interfaces are implemented. Differential Revision: https://phabricator.services.mozilla.com/D129781 |
||
---|---|---|
.. | ||
base | ||
build | ||
resources/content | ||
shistory | ||
test | ||
moz.build |