Bug 1377999 - Make TextNode to adapt the DOMArena changes r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D62353
This commit is contained in:
Sean Feng
2020-03-17 14:53:54 +00:00
parent 26a255b849
commit fbd3ec536a
18 changed files with 45 additions and 33 deletions

View File

@@ -47,7 +47,8 @@ nsresult nsGfxButtonControlFrame::CreateAnonymousContent(
NS_ENSURE_SUCCESS(rv, rv);
// Add a child text content node for the label
mTextContent = new nsTextNode(mContent->NodeInfo()->NodeInfoManager());
mTextContent = new (mContent->NodeInfo()->NodeInfoManager())
nsTextNode(mContent->NodeInfo()->NodeInfoManager());
// set the value of the text node and add it to the child list
mTextContent->SetText(label, false);