Skip to content

Commit

Permalink
Bug 1377999 - Make MathML nodes to adapt the DOMArena changes r=smaug
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D57702

--HG--
extra : moz-landing-system : lando
  • Loading branch information
sefeng211 committed Mar 17, 2020
1 parent 20800c5 commit 6d144fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/mathml/MathMLElementFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ using namespace mozilla::dom;
// MathML Element Factory (declared in nsContentCreatorFunctions.h)
nsresult NS_NewMathMLElement(
Element** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) {
NS_ADDREF(*aResult = new MathMLElement(aNodeInfo));
RefPtr<mozilla::dom::NodeInfo> nodeInfo(aNodeInfo);
auto* nim = nodeInfo->NodeInfoManager();
NS_ADDREF(*aResult = new (nim) MathMLElement(nodeInfo.forget()));
return NS_OK;
}

0 comments on commit 6d144fc

Please sign in to comment.