Bug 1843484 - Use EventTarget* instead of nsISupports* for the event target parameter of the nsContentUtils::Dispatch methods. r=smaug
This saves a few queryInterface calls on the hot path. Differential Revision: https://phabricator.services.mozilla.com/D186976
This commit is contained in:
@@ -472,9 +472,8 @@ void HTMLTextAreaElement::FireChangeEventIfNeeded() {
|
||||
|
||||
// Dispatch the change event.
|
||||
mFocusedValue = value;
|
||||
nsContentUtils::DispatchTrustedEvent(
|
||||
OwnerDoc(), static_cast<nsIContent*>(this), u"change"_ns, CanBubble::eYes,
|
||||
Cancelable::eNo);
|
||||
nsContentUtils::DispatchTrustedEvent(OwnerDoc(), this, u"change"_ns,
|
||||
CanBubble::eYes, Cancelable::eNo);
|
||||
}
|
||||
|
||||
nsresult HTMLTextAreaElement::PostHandleEvent(EventChainPostVisitor& aVisitor) {
|
||||
|
||||
Reference in New Issue
Block a user