1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:18:26 +00:00

Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cpp

This commit is contained in:
trav90
2021-01-29 16:28:26 -06:00
committed by roytam1
parent f5cf8f0558
commit a0aabcdaba
+2 -3
View File
@@ -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);
}
}