Bug 515338 - Make HTML5 parser internals not hold nsIContent or regular dynamic atoms. r=bnewman.

This commit is contained in:
Henri Sivonen
2009-09-21 14:43:43 +03:00
parent fc1b8bac73
commit 4384f2fdf0
31 changed files with 713 additions and 447 deletions

View File

@@ -60,6 +60,7 @@
#include "nsHtml5UTF16Buffer.h"
#include "nsHtml5TreeOpExecutor.h"
#include "nsHtml5StreamParser.h"
#include "nsHtml5AtomTable.h"
class nsHtml5Parser : public nsIParser {
public:
@@ -338,7 +339,7 @@ class nsHtml5Parser : public nsIParser {
/**
* The tree operation executor
*/
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
/**
* The HTML5 tree builder
@@ -353,7 +354,12 @@ class nsHtml5Parser : public nsIParser {
/**
* The stream parser.
*/
nsRefPtr<nsHtml5StreamParser> mStreamParser;
nsRefPtr<nsHtml5StreamParser> mStreamParser;
/**
* The scoped atom service
*/
const nsAutoPtr<nsHtml5AtomTable> mAtomTable;
};
#endif