From 7ca7d07fe5b662edeb233adb02de61b50c222f23 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Mon, 28 Feb 2000 21:38:30 +0000 Subject: [PATCH] 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 --- content/html/document/src/nsHTMLContentSink.cpp | 2 +- layout/html/document/src/nsHTMLContentSink.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp index 713ceb4c9a08..a4a0c931c87e 100644 --- a/content/html/document/src/nsHTMLContentSink.cpp +++ b/content/html/document/src/nsHTMLContentSink.cpp @@ -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 { diff --git a/layout/html/document/src/nsHTMLContentSink.cpp b/layout/html/document/src/nsHTMLContentSink.cpp index 713ceb4c9a08..a4a0c931c87e 100644 --- a/layout/html/document/src/nsHTMLContentSink.cpp +++ b/layout/html/document/src/nsHTMLContentSink.cpp @@ -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 {