And remove unused includes of nsGkAtoms.h in the process. The few dependencies have been moved to ServoStyleConstsInlines.h The used command to remove the now unused dependency was: git grep -l nsGkAtoms.h | while read line; do grep -v nsGkAtoms.h $line | grep -q -E '\<nsGkAtoms\>' || sed -i -e '/nsGkAtoms.h/d' $line ; done Differential Revision: https://phabricator.services.mozilla.com/D292697
18 lines
676 B
C++
18 lines
676 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "mozilla/dom/MathMLElement.h"
|
|
#include "nsContentCreatorFunctions.h"
|
|
|
|
using namespace mozilla::dom;
|
|
|
|
// MathML Element Factory (declared in nsContentCreatorFunctions.h)
|
|
nsresult NS_NewMathMLElement(
|
|
Element** aResult, already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo) {
|
|
RefPtr<mozilla::dom::NodeInfo> nodeInfo(aNodeInfo);
|
|
auto* nim = nodeInfo->NodeInfoManager();
|
|
NS_ADDREF(*aResult = new (nim) MathMLElement(nodeInfo.forget()));
|
|
return NS_OK;
|
|
}
|