summaryrefslogtreecommitdiffstats
path: root/parser/html/nsHtml5AttributeName.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-18 16:08:45 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:36 -0500
commite5557d43d6934918c018a527f3bae1f7049b9ef1 (patch)
treeff494bb15bd1031f8c5b3a2d6550f6d9b5304e33 /parser/html/nsHtml5AttributeName.h
parent650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa (diff)
downloadUXP-e5557d43d6934918c018a527f3bae1f7049b9ef1.tar
UXP-e5557d43d6934918c018a527f3bae1f7049b9ef1.tar.gz
UXP-e5557d43d6934918c018a527f3bae1f7049b9ef1.tar.lz
UXP-e5557d43d6934918c018a527f3bae1f7049b9ef1.tar.xz
UXP-e5557d43d6934918c018a527f3bae1f7049b9ef1.zip
Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc.
HTML Regen. Tag UXP Issue #1344
Diffstat (limited to 'parser/html/nsHtml5AttributeName.h')
-rw-r--r--parser/html/nsHtml5AttributeName.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/parser/html/nsHtml5AttributeName.h b/parser/html/nsHtml5AttributeName.h
index f71a5d87b..8519f463f 100644
--- a/parser/html/nsHtml5AttributeName.h
+++ b/parser/html/nsHtml5AttributeName.h
@@ -51,7 +51,6 @@ class nsHtml5Tokenizer;
class nsHtml5TreeBuilder;
class nsHtml5MetaScanner;
class nsHtml5ElementName;
-class nsHtml5HtmlAttributes;
class nsHtml5UTF16Buffer;
class nsHtml5StateSnapshot;
class nsHtml5Portability;
@@ -114,14 +113,14 @@ class nsHtml5AttributeName
int32_t* uri;
nsIAtom** local;
nsIAtom** prefix;
- protected:
+ bool custom;
nsHtml5AttributeName(int32_t* uri, nsIAtom** local, nsIAtom** prefix);
- private:
- static nsHtml5AttributeName* createAttributeName(nsIAtom* name);
public:
- virtual void release();
- virtual ~nsHtml5AttributeName();
- virtual nsHtml5AttributeName* cloneAttributeName(nsHtml5AtomTable* interner);
+ nsHtml5AttributeName();
+ bool isInterned();
+ void setNameForNonInterned(nsIAtom* name);
+ static nsHtml5AttributeName* createAttributeName(nsIAtom* name);
+ ~nsHtml5AttributeName();
int32_t getUri(int32_t mode);
nsIAtom* getLocal(int32_t mode);
nsIAtom* getPrefix(int32_t mode);