зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
af573c449c
Коммит
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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче