diff options
author | trav90 <travawine@palemoon.org> | 2021-01-29 16:28:26 -0600 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2021-01-29 16:28:26 -0600 |
commit | 402881b4c28d8abcc7621ee1e94a9e1a2c8f293c (patch) | |
tree | 9ba39be978585837db6d1ca64e9561d76ca60cec | |
parent | e1daeef18312a0cb17eda6bed7f363d8748ed4a3 (diff) | |
download | UXP-402881b4c28d8abcc7621ee1e94a9e1a2c8f293c.tar UXP-402881b4c28d8abcc7621ee1e94a9e1a2c8f293c.tar.gz UXP-402881b4c28d8abcc7621ee1e94a9e1a2c8f293c.tar.lz UXP-402881b4c28d8abcc7621ee1e94a9e1a2c8f293c.tar.xz UXP-402881b4c28d8abcc7621ee1e94a9e1a2c8f293c.zip |
Issue #1723 - Fix Linux build bustage in HTMLMenuItemElement.cpp
-rw-r--r-- | dom/html/HTMLMenuItemElement.cpp | 5 |
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); } } |