зеркало из 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 |
||
---|---|---|
.. | ||
crashtests | ||
reftest | ||
test | ||
tree | ||
moz.build | ||
nsBox.cpp | ||
nsBoxFrame.cpp | ||
nsBoxFrame.h | ||
nsBoxLayout.cpp | ||
nsBoxLayout.h | ||
nsBoxLayoutState.cpp | ||
nsBoxLayoutState.h | ||
nsButtonBoxFrame.cpp | ||
nsButtonBoxFrame.h | ||
nsDeckFrame.cpp | ||
nsDeckFrame.h | ||
nsDocElementBoxFrame.cpp | ||
nsIPopupContainer.h | ||
nsIScrollbarMediator.h | ||
nsImageBoxFrame.cpp | ||
nsImageBoxFrame.h | ||
nsLeafBoxFrame.cpp | ||
nsLeafBoxFrame.h | ||
nsMenuBarFrame.cpp | ||
nsMenuBarFrame.h | ||
nsMenuBarListener.cpp | ||
nsMenuBarListener.h | ||
nsMenuFrame.cpp | ||
nsMenuFrame.h | ||
nsMenuParent.h | ||
nsMenuPopupFrame.cpp | ||
nsMenuPopupFrame.h | ||
nsPopupSetFrame.cpp | ||
nsPopupSetFrame.h | ||
nsRepeatService.cpp | ||
nsRepeatService.h | ||
nsResizerFrame.cpp | ||
nsResizerFrame.h | ||
nsRootBoxFrame.cpp | ||
nsScrollbarButtonFrame.cpp | ||
nsScrollbarButtonFrame.h | ||
nsScrollbarFrame.cpp | ||
nsScrollbarFrame.h | ||
nsSliderFrame.cpp | ||
nsSliderFrame.h | ||
nsSplitterFrame.cpp | ||
nsSplitterFrame.h | ||
nsSprocketLayout.cpp | ||
nsSprocketLayout.h | ||
nsStackLayout.cpp | ||
nsStackLayout.h | ||
nsTextBoxFrame.cpp | ||
nsTextBoxFrame.h | ||
nsTitleBarFrame.cpp | ||
nsTitleBarFrame.h | ||
nsXULPopupManager.cpp | ||
nsXULPopupManager.h | ||
nsXULTooltipListener.cpp | ||
nsXULTooltipListener.h |