diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-18 14:04:17 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:36 -0500 |
commit | 650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa (patch) | |
tree | 588b205b62bbf6677eac3e679731716078452971 /parser/html/nsHtml5ReleasableAttributeName.cpp | |
parent | 90d19b0a319a2e153069896453e02a53b1e2cd06 (diff) | |
download | UXP-650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa.tar UXP-650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa.tar.gz UXP-650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa.tar.lz UXP-650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa.tar.xz UXP-650f6b5eb31dfe6c60da16d1498f8cc3efac4dfa.zip |
Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc.
- Removes nsHtml5ReleasableAttributeName
- Adds nsHtml5AttributeEntry.h
- Makes nsHtml5HtmlAttributes no longer gentered.
Tag UXP Issue #1344
Diffstat (limited to 'parser/html/nsHtml5ReleasableAttributeName.cpp')
-rw-r--r-- | parser/html/nsHtml5ReleasableAttributeName.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/parser/html/nsHtml5ReleasableAttributeName.cpp b/parser/html/nsHtml5ReleasableAttributeName.cpp deleted file mode 100644 index 4cef131e7..000000000 --- a/parser/html/nsHtml5ReleasableAttributeName.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/* 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/. */ - -#include "nsHtml5ReleasableAttributeName.h" -#include "nsHtml5Portability.h" -#include "nsHtml5AtomTable.h" - -nsHtml5ReleasableAttributeName::nsHtml5ReleasableAttributeName(int32_t* uri, nsIAtom** local, nsIAtom** prefix) - : nsHtml5AttributeName(uri, local, prefix) -{ -} - -nsHtml5AttributeName* -nsHtml5ReleasableAttributeName::cloneAttributeName(nsHtml5AtomTable* aInterner) -{ - nsIAtom* l = getLocal(0); - if (aInterner) { - if (!l->IsStaticAtom()) { - nsAutoString str; - l->ToString(str); - l = aInterner->GetAtom(str); - } - } - return new nsHtml5ReleasableAttributeName(nsHtml5AttributeName::ALL_NO_NS, - nsHtml5AttributeName::SAME_LOCAL(l), - nsHtml5AttributeName::ALL_NO_PREFIX); -} - -void -nsHtml5ReleasableAttributeName::release() -{ - delete this; -} |