Makes it so select tag are monolithic, this means the sink doesn't get flushed

until the end tag of a select. This helps performance a great deal. If it gets flushed
inbetween then the remaining options are added one at a time using the AddOption
and this is a lot less effecient.
b 28593, r=vidur
This commit is contained in:
rods%netscape.com 2000-02-28 21:38:30 +00:00
Родитель af573c449c
Коммит 7ca7d07fe5
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -3931,7 +3931,7 @@ HTMLContentSink::NotifyInsert(nsIContent* aContent,
PRBool
HTMLContentSink::IsMonolithicContainer(nsHTMLTag aTag)
{
if (eHTMLTag_tr == aTag) {
if (eHTMLTag_tr == aTag || eHTMLTag_select == aTag) {
return PR_TRUE;
}
else {

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

@ -3931,7 +3931,7 @@ HTMLContentSink::NotifyInsert(nsIContent* aContent,
PRBool
HTMLContentSink::IsMonolithicContainer(nsHTMLTag aTag)
{
if (eHTMLTag_tr == aTag) {
if (eHTMLTag_tr == aTag || eHTMLTag_select == aTag) {
return PR_TRUE;
}
else {