From e5557d43d6934918c018a527f3bae1f7049b9ef1 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 18 Jan 2020 16:08:45 -0500 Subject: Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. HTML Regen. Tag UXP Issue #1344 --- parser/html/nsHtml5StackNode.h | 1 - 1 file changed, 1 deletion(-) (limited to 'parser/html/nsHtml5StackNode.h') diff --git a/parser/html/nsHtml5StackNode.h b/parser/html/nsHtml5StackNode.h index cfe6820c6..15922f3bb 100644 --- a/parser/html/nsHtml5StackNode.h +++ b/parser/html/nsHtml5StackNode.h @@ -53,7 +53,6 @@ class nsHtml5TreeBuilder; class nsHtml5MetaScanner; class nsHtml5AttributeName; class nsHtml5ElementName; -class nsHtml5HtmlAttributes; class nsHtml5UTF16Buffer; class nsHtml5StateSnapshot; class nsHtml5Portability; -- cgit v1.2.3 From 76a4af34064296177e11a0d3887a5763a6c3a572 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sat, 18 Jan 2020 17:17:17 -0500 Subject: Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName. HTML Regen. Tag UXP Issue #1344 --- parser/html/nsHtml5StackNode.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'parser/html/nsHtml5StackNode.h') diff --git a/parser/html/nsHtml5StackNode.h b/parser/html/nsHtml5StackNode.h index 15922f3bb..a9fc42d98 100644 --- a/parser/html/nsHtml5StackNode.h +++ b/parser/html/nsHtml5StackNode.h @@ -45,14 +45,15 @@ #include "nsIUnicodeDecoder.h" #include "nsHtml5Macros.h" #include "nsIContentHandle.h" +#include "nsHtml5Portability.h" class nsHtml5StreamParser; +class nsHtml5AttributeName; +class nsHtml5ElementName; class nsHtml5Tokenizer; class nsHtml5TreeBuilder; class nsHtml5MetaScanner; -class nsHtml5AttributeName; -class nsHtml5ElementName; class nsHtml5UTF16Buffer; class nsHtml5StateSnapshot; class nsHtml5Portability; @@ -98,7 +99,5 @@ class nsHtml5StackNode static void releaseStatics(); }; - - #endif -- cgit v1.2.3 From dd6749f7ddd4db014fb7d76a9b698d07f2b859f5 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sun, 19 Jan 2020 19:56:45 -0500 Subject: Regenerate Parser for 483155 Tag UXP Issue #1344 --- parser/html/nsHtml5StackNode.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'parser/html/nsHtml5StackNode.h') diff --git a/parser/html/nsHtml5StackNode.h b/parser/html/nsHtml5StackNode.h index a9fc42d98..c02b8c793 100644 --- a/parser/html/nsHtml5StackNode.h +++ b/parser/html/nsHtml5StackNode.h @@ -46,6 +46,7 @@ #include "nsHtml5Macros.h" #include "nsIContentHandle.h" #include "nsHtml5Portability.h" +#include "nsHtml5ContentCreatorFunction.h" class nsHtml5StreamParser; @@ -70,6 +71,7 @@ class nsHtml5StackNode nsHtml5HtmlAttributes* attributes; private: int32_t refcount; + mozilla::dom::HTMLContentCreatorFunction htmlCreator; public: inline int32_t getFlags() { @@ -81,7 +83,8 @@ class nsHtml5StackNode bool isSpecial(); bool isFosterParenting(); bool isHtmlIntegrationPoint(); - nsHtml5StackNode(int32_t flags, int32_t ns, nsIAtom* name, nsIContentHandle* node, nsIAtom* popName, nsHtml5HtmlAttributes* attributes); + mozilla::dom::HTMLContentCreatorFunction getHtmlCreator(); + nsHtml5StackNode(int32_t flags, int32_t ns, nsIAtom* name, nsIContentHandle* node, nsIAtom* popName, nsHtml5HtmlAttributes* attributes, mozilla::dom::HTMLContentCreatorFunction htmlCreator); nsHtml5StackNode(nsHtml5ElementName* elementName, nsIContentHandle* node); nsHtml5StackNode(nsHtml5ElementName* elementName, nsIContentHandle* node, nsHtml5HtmlAttributes* attributes); nsHtml5StackNode(nsHtml5ElementName* elementName, nsIContentHandle* node, nsIAtom* popName); -- cgit v1.2.3