summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-01-30 01:02:59 +0000
committerMoonchild <moonchild@palemoon.org>2021-01-30 01:02:59 +0000
commita4503737e1804b55c70160973dd5ce3ca1865f10 (patch)
tree9ba39be978585837db6d1ca64e9561d76ca60cec
parente1daeef18312a0cb17eda6bed7f363d8748ed4a3 (diff)
parent402881b4c28d8abcc7621ee1e94a9e1a2c8f293c (diff)
downloaduxp-a4503737e1804b55c70160973dd5ce3ca1865f10.tar.gz
Merge pull request 'Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cpp' (#1724) from trav90/UXP:1723-fix into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1724
-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 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);
}
}