зеркало из https://github.com/mozilla/gecko-dev.git
991955fad8
The atoms in nsHTMLTags are a subset of nsGkAtoms, which means that sTagAtomTable[] currently ends up holding duplicate pointers to the same static atoms. This patch removes sTagAtomTable[]. The only place that used sTagAtomTable[] was nsHTMLTags::AddRefTable(). It now instead calls NS_GetStaticAtom() to get the static atoms registered by nsGkAtoms. The patch also moves some checking of sTagNames from RegisterAtoms() (which is removed) to AddRefTable(). All this reduces the number of duplicate static atoms from 148 to 12. MozReview-Commit-ID: 14qXYeoorFr * * * [mq]: foo MozReview-Commit-ID: AgQbXlcvWrt |
||
---|---|---|
.. | ||
tests | ||
CNavDTD.cpp | ||
CNavDTD.h | ||
CParserContext.cpp | ||
CParserContext.h | ||
moz.build | ||
nsElementTable.cpp | ||
nsElementTable.h | ||
nsExpatDriver.cpp | ||
nsExpatDriver.h | ||
nsHTMLTagList.h | ||
nsHTMLTags.cpp | ||
nsHTMLTags.h | ||
nsHTMLTokenizer.cpp | ||
nsHTMLTokenizer.h | ||
nsIContentSink.h | ||
nsIDTD.h | ||
nsIExpatSink.idl | ||
nsIFragmentContentSink.h | ||
nsIHTMLContentSink.h | ||
nsIParser.h | ||
nsITokenizer.h | ||
nsParser.cpp | ||
nsParser.h | ||
nsParserBase.h | ||
nsParserCIID.h | ||
nsParserConstants.h | ||
nsParserModule.cpp | ||
nsParserMsgUtils.cpp | ||
nsParserMsgUtils.h | ||
nsScanner.cpp | ||
nsScanner.h | ||
nsScannerString.cpp | ||
nsScannerString.h |