parser/html/nsHtml5Atom.h
author Nathan Froyd <froydnj@mozilla.com>
Thu, 08 Aug 2013 13:55:20 -0400
changeset 141874 a3ea5bc816f5cdf404faafbc8500664024b4efc9
parent 96569 c755cdaa7dbcac6e77f0338c2aafb930f730cd1f
child 144068 e51ff50dea786501242d66a5d545f5ff8522aefc
permissions -rw-r--r--
Bug 901947 - part 1 - don't null-check |new X| in content/; r=smaug

/* 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/. */

#ifndef nsHtml5Atom_h_
#define nsHtml5Atom_h_

#include "nsIAtom.h"
#include "mozilla/Attributes.h"

/**
 * A dynamic atom implementation meant for use within the nsHtml5Tokenizer and 
 * nsHtml5TreeBuilder owned by one nsHtml5Parser or nsHtml5StreamParser 
 * instance.
 *
 * Usage is documented in nsHtml5AtomTable and nsIAtom.
 */
class nsHtml5Atom MOZ_FINAL : public nsIAtom
{
  public:
    NS_DECL_ISUPPORTS
    NS_DECL_NSIATOM

    nsHtml5Atom(const nsAString& aString);
    ~nsHtml5Atom();
};

#endif // nsHtml5Atom_h_