Bug 1470930: Use enums for passing arguments for event dispatch. r=smaug

MozReview-Commit-ID: DsNuF7GAflJ
This commit is contained in:
Emilio Cobos Álvarez
2018-06-25 18:23:50 +02:00
parent fa36e67ff5
commit 0348c342b8
73 changed files with 438 additions and 277 deletions

View File

@@ -58,7 +58,9 @@ HTMLDetailsElement::BeforeSetAttr(int32_t aNameSpaceID, nsAtom* aName,
// According to the html spec, a 'toggle' event is a simple event which
// does not bubble.
mToggleEventDispatcher =
new AsyncEventDispatcher(this, NS_LITERAL_STRING("toggle"), false);
new AsyncEventDispatcher(this,
NS_LITERAL_STRING("toggle"),
CanBubble::eNo);
mToggleEventDispatcher->PostDOMEvent();
}
}