mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-16 12:17:34 +09:00
parent
146a00f5b0
commit
f460a50971
2 changed files with 20 additions and 0 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#include "nsIAtom.h"
|
||||
#include "nsIThread.h"
|
||||
|
||||
#define RECENTLY_USED_PARSER_ATOMS_SIZE 31
|
||||
|
||||
class nsHtml5Atom;
|
||||
|
||||
class nsHtml5AtomEntry : public nsStringHashKey
|
||||
|
|
@ -87,6 +89,9 @@ class nsHtml5AtomTable
|
|||
*/
|
||||
void Clear()
|
||||
{
|
||||
for (uint32_t i = 0; i < RECENTLY_USED_PARSER_ATOMS_SIZE; ++i) {
|
||||
mRecentlyUsedParserAtoms[i] = nullptr;
|
||||
}
|
||||
mTable.Clear();
|
||||
}
|
||||
|
||||
|
|
@ -99,6 +104,7 @@ class nsHtml5AtomTable
|
|||
|
||||
private:
|
||||
nsTHashtable<nsHtml5AtomEntry> mTable;
|
||||
nsIAtom* mRecentlyUsedParserAtoms[RECENTLY_USED_PARSER_ATOMS_SIZE];
|
||||
#ifdef DEBUG
|
||||
nsCOMPtr<nsIThread> mPermittedLookupThread;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue