summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2021-01-29 16:28:26 -0600
committerMoonchild <moonchild@palemoon.org>2021-01-30 01:07:11 +0000
commit304496d4ab61496a43d9d42cf8deb7811d772fe2 (patch)
tree2e075ab682d6d28248ff1e6bdc706f50ecf57591
parent745254183c226e5db0caa566ad496d2f0192182e (diff)
downloadUXP-RC_20210130.tar
UXP-RC_20210130.tar.gz
UXP-RC_20210130.tar.lz
UXP-RC_20210130.tar.xz
UXP-RC_20210130.zip
Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cppRELBASE_20210202RC_20210130
-rw-r--r--dom/html/HTMLMenuItemElement.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/html/HTMLMenuItemElement.cpp b/dom/html/HTMLMenuItemElement.cpp
index 6cf4eb40c..42cee132e 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);
}
}