Bug 569399 - autofocus sometimes does not work because the element has no frame yet. r=hsivonen a=blocking-betaN
authorMounir Lamouri <mounir.lamouri@gmail.com>
Mon, 03 Jan 2011 13:57:45 +0100
changeset 59787 abc78094ad649e0e130a2eacd77af619f118c55b
parent 59786 d641b5c7774eab21125e48de8604012bebbe03c7
child 59788 13adcde8f131523dfee37c62b7c596aabcad89d1
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewershsivonen, blocking-betaN
bugs569399
milestone2.0b9pre
Bug 569399 - autofocus sometimes does not work because the element has no frame yet. r=hsivonen a=blocking-betaN
parser/html/nsHtml5TreeOpExecutor.cpp
--- a/parser/html/nsHtml5TreeOpExecutor.cpp
+++ b/parser/html/nsHtml5TreeOpExecutor.cpp
@@ -198,17 +198,17 @@ nsHtml5TreeOpExecutor::SetParser(nsIPars
   return NS_OK;
 }
 
 void
 nsHtml5TreeOpExecutor::FlushPendingNotifications(mozFlushType aType)
 {
   if (aType >= Flush_InterruptibleLayout) {
     // Bug 577508 / 253951
-    nsContentSink::StartLayout(PR_FALSE);
+    nsContentSink::StartLayout(PR_TRUE);
   }
 }
 
 void
 nsHtml5TreeOpExecutor::SetDocumentCharsetAndSource(nsACString& aCharset, PRInt32 aCharsetSource)
 {
   if (mDocument) {
     mDocument->SetDocumentCharacterSetSource(aCharsetSource);