mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-18 10:23:08 +09:00
Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cpp
This commit is contained in:
parent
f5cf8f0558
commit
a0aabcdaba
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue