mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
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:
parent
af573c449c
commit
7ca7d07fe5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user