diff options
author | trav90 <travawine@palemoon.org> | 2021-01-29 16:28:26 -0600 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-01-30 01:07:11 +0000 |
commit | 304496d4ab61496a43d9d42cf8deb7811d772fe2 (patch) | |
tree | 2e075ab682d6d28248ff1e6bdc706f50ecf57591 | |
parent | 745254183c226e5db0caa566ad496d2f0192182e (diff) | |
download | uxp-RC_20210130.tar.gz |
Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cppRELBASE_20210202RC_20210130
-rw-r--r-- | dom/html/HTMLMenuItemElement.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<mozilla::dom::NodeInfo>&& aNodeInfo, mozilla::dom::FromParser aFromParser) { - RefPtr<mozilla::dom::NodeInfo> 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); } } |