Bug 1715134 - Make form control type an enum class. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D117087
This commit is contained in:
Emilio Cobos Álvarez
2021-06-08 09:43:59 +00:00
parent 80844dfd42
commit 3daca083b1
32 changed files with 691 additions and 641 deletions

View File

@@ -28,7 +28,7 @@ namespace mozilla::dom {
HTMLObjectElement::HTMLObjectElement(
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
FromParser aFromParser)
: nsGenericHTMLFormElement(std::move(aNodeInfo), NS_FORM_OBJECT),
: nsGenericHTMLFormElement(std::move(aNodeInfo), FormControlType::Object),
mIsDoneAddingChildren(!aFromParser) {
RegisterActivityObserver();
SetIsNetworkCreated(aFromParser == FROM_PARSER_NETWORK);