Make HTML5 parser not crash in AAA on cnn.com

This commit is contained in:
Henri Sivonen 2009-03-09 15:18:23 +02:00
Родитель 948c3f9874
Коммит 7792f6dd89
9 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -55,6 +55,7 @@ class nsHtml5StackNode;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5AttributeName class nsHtml5AttributeName
{ {
private: private:

Просмотреть файл

@ -55,6 +55,7 @@ class nsHtml5StackNode;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5ElementName class nsHtml5ElementName
{ {
public: public:

Просмотреть файл

@ -56,6 +56,7 @@ class nsHtml5StackNode;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5HtmlAttributes class nsHtml5HtmlAttributes
{ {
public: public:

Просмотреть файл

@ -56,6 +56,7 @@ class nsHtml5StackNode;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5MetaScanner class nsHtml5MetaScanner
{ {
private: private:

Просмотреть файл

@ -55,6 +55,7 @@ class nsHtml5HtmlAttributes;
class nsHtml5StackNode; class nsHtml5StackNode;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability class nsHtml5Portability
{ {
public: public:

Просмотреть файл

@ -56,6 +56,7 @@ class nsHtml5HtmlAttributes;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5StackNode class nsHtml5StackNode
{ {
public: public:

Просмотреть файл

@ -58,6 +58,7 @@ class nsHtml5StackNode;
class nsHtml5UTF16Buffer; class nsHtml5UTF16Buffer;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5Tokenizer class nsHtml5Tokenizer
{ {
private: private:

Просмотреть файл

@ -3236,6 +3236,8 @@ nsHtml5TreeBuilder::reconstructTheActiveFormattingElements()
} }
push(entryClone); push(entryClone);
listOfActiveFormattingElements[entryPos] = entryClone; listOfActiveFormattingElements[entryPos] = entryClone;
entry->release();
entryClone->retain();
} }
} }

Просмотреть файл

@ -55,6 +55,7 @@ class nsHtml5HtmlAttributes;
class nsHtml5StackNode; class nsHtml5StackNode;
class nsHtml5Portability; class nsHtml5Portability;
class nsHtml5UTF16Buffer class nsHtml5UTF16Buffer
{ {
private: private: