[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:54:00 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 6ac7717b0101f2b92e185ce4801892b2224443ef
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Oct 24 19:15:29 2002 +0000

    	Make sure that KHTML's initial layout happens after KHTML
    	fires the onload.  This means that in the case where we
    	beat the timer, we will now fire the onload before both
    	the initial layout and the initial paint.
    
            * khtml/html/html_documentimpl.cpp:
            (HTMLDocumentImpl::close):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2454 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index c410140..5ef6124 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,3 +1,13 @@
+2002-10-24  David Hyatt  <hyatt at apple.com>
+
+	Make sure that KHTML's initial layout happens after KHTML
+	fires the onload.  This means that in the case where we
+	beat the timer, we will now fire the onload before both
+	the initial layout and the initial paint.
+	
+        * khtml/html/html_documentimpl.cpp:
+        (HTMLDocumentImpl::close):
+
 === Alexander-29 ===
 
 2002-10-24  Chris Blumenberg  <cblu at apple.com>
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index c410140..5ef6124 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,13 @@
+2002-10-24  David Hyatt  <hyatt at apple.com>
+
+	Make sure that KHTML's initial layout happens after KHTML
+	fires the onload.  This means that in the case where we
+	beat the timer, we will now fire the onload before both
+	the initial layout and the initial paint.
+	
+        * khtml/html/html_documentimpl.cpp:
+        (HTMLDocumentImpl::close):
+
 === Alexander-29 ===
 
 2002-10-24  Chris Blumenberg  <cblu at apple.com>
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index c410140..5ef6124 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,13 @@
+2002-10-24  David Hyatt  <hyatt at apple.com>
+
+	Make sure that KHTML's initial layout happens after KHTML
+	fires the onload.  This means that in the case where we
+	beat the timer, we will now fire the onload before both
+	the initial layout and the initial paint.
+	
+        * khtml/html/html_documentimpl.cpp:
+        (HTMLDocumentImpl::close):
+
 === Alexander-29 ===
 
 2002-10-24  Chris Blumenberg  <cblu at apple.com>
diff --git a/WebCore/khtml/html/html_documentimpl.cpp b/WebCore/khtml/html/html_documentimpl.cpp
index ca93a1f..e078deb 100644
--- a/WebCore/khtml/html/html_documentimpl.cpp
+++ b/WebCore/khtml/html/html_documentimpl.cpp
@@ -294,14 +294,21 @@ static bool isTransitional(const QString &spec, int start)
 
 void HTMLDocumentImpl::close()
 {
+    // First fire the onload.
     bool doload = !parsing() && m_tokenizer;
-
+    if (body() && doload)
+        body()->dispatchWindowEvent(EventImpl::LOAD_EVENT, false, false);
+        
+    // Make sure both the initial layout and reflow happen after the onload
+    // fires.  This will improve onload scores, and other browsers do it.
+    // If they wanna cheat, we can too. -dwh
+    
+    // The initial layout happens here.
     DocumentImpl::close();
 
-    if (body() && doload) {
-        body()->dispatchWindowEvent(EventImpl::LOAD_EVENT, false, false);
+    // Now do our painting
+    if (body() && doload)
         updateRendering();
-    }
 }
 
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list