mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00

This commit renames nsMathMLElement/nsMathMLElementFactory classes into MathMLElement/MathMLElementFactory and moves the former into the mozilla::dom namespace. This is a preliminary step to introduce MathML DOM (bug 1579602). Code behavior is not changed. Differential Revision: https://phabricator.services.mozilla.com/D45128 --HG-- rename : dom/mathml/nsMathMLElement.cpp => dom/mathml/MathMLElement.cpp rename : dom/mathml/nsMathMLElement.h => dom/mathml/MathMLElement.h rename : dom/mathml/nsMathMLElementFactory.cpp => dom/mathml/MathMLElementFactory.cpp extra : moz-landing-system : lando
19 lines
709 B
C++
19 lines
709 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* 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 "nsContentCreatorFunctions.h"
|
|
#include "nsGkAtoms.h"
|
|
#include "mozilla/dom/MathMLElement.h"
|
|
|
|
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));
|
|
return NS_OK;
|
|
}
|