2012-05-29 19:52:43 +04:00
|
|
|
/* 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/. */
|
2009-09-18 19:13:10 +04:00
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#ifndef nsHtml5Atom_h
|
|
|
|
#define nsHtml5Atom_h
|
2009-09-18 19:13:10 +04:00
|
|
|
|
|
|
|
#include "nsIAtom.h"
|
2012-06-13 08:07:59 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2009-09-18 19:13:10 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsHtml5Atom final : public nsIAtom
|
2009-09-18 19:13:10 +04:00
|
|
|
{
|
|
|
|
public:
|
2017-08-09 15:20:17 +03:00
|
|
|
NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr) final;
|
2009-09-18 19:13:10 +04:00
|
|
|
NS_DECL_NSIATOM
|
|
|
|
|
2014-09-02 02:04:52 +04:00
|
|
|
explicit nsHtml5Atom(const nsAString& aString);
|
2009-09-18 19:13:10 +04:00
|
|
|
~nsHtml5Atom();
|
|
|
|
};
|
|
|
|
|
2013-08-23 19:07:10 +04:00
|
|
|
#endif // nsHtml5Atom_h
|