From 402881b4c28d8abcc7621ee1e94a9e1a2c8f293c Mon Sep 17 00:00:00 2001 From: trav90 Date: Fri, 29 Jan 2021 16:28:26 -0600 Subject: Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cpp --- dom/html/HTMLMenuItemElement.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dom') diff --git a/dom/html/HTMLMenuItemElement.cpp b/dom/html/HTMLMenuItemElement.cpp index 6cf4eb40c2..42cee132e6 100644 --- a/dom/html/HTMLMenuItemElement.cpp +++ b/dom/html/HTMLMenuItemElement.cpp @@ -16,11 +16,10 @@ nsGenericHTMLElement* NS_NewHTMLMenuItemElement(already_AddRefed&& aNodeInfo, mozilla::dom::FromParser aFromParser) { - RefPtr nodeInfo(aNodeInfo); if (mozilla::Preferences::GetBool("dom.menuitem.enabled")) { - return new mozilla::dom::HTMLMenuItemElement(nodeInfo.forget(), aFromParser); + return new mozilla::dom::HTMLMenuItemElement(aNodeInfo, aFromParser); } else { - return new mozilla::dom::HTMLUnknownElement(nodeInfo.forget()); + return new mozilla::dom::HTMLUnknownElement(aNodeInfo); } } -- cgit v1.2.3