michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsHtml5ReleasableElementName.h" michael@0: michael@0: nsHtml5ReleasableElementName::nsHtml5ReleasableElementName(nsIAtom* name) michael@0: : nsHtml5ElementName(name) michael@0: { michael@0: } michael@0: michael@0: void michael@0: nsHtml5ReleasableElementName::release() michael@0: { michael@0: delete this; michael@0: } michael@0: michael@0: nsHtml5ElementName* michael@0: nsHtml5ReleasableElementName::cloneElementName(nsHtml5AtomTable* aInterner) michael@0: { michael@0: nsIAtom* l = name; michael@0: if (aInterner) { michael@0: if (!l->IsStaticAtom()) { michael@0: nsAutoString str; michael@0: l->ToString(str); michael@0: l = aInterner->GetAtom(str); michael@0: } michael@0: } michael@0: return new nsHtml5ReleasableElementName(l); michael@0: }