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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user