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
parent af573c449c
commit 7ca7d07fe5
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {