зеркало из 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 |
||
---|---|---|
.. | ||
expat | ||
html | ||
htmlparser | ||
xml | ||
moz.build | ||
nsCharsetSource.h |