[SCM] WebKit Debian packaging branch, debian/experimental, updated. debian/1.3.8-1-1049-g2e11a8e

antti at apple.com antti at apple.com
Fri Jan 21 14:57:13 UTC 2011


The following commit has been merged in the debian/experimental branch:
commit 054c530c33a7cecad25daaa9991aca1987ac0f8b
Author: antti at apple.com <antti at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jan 5 12:03:55 2011 +0000

    https://bugs.webkit.org/show_bug.cgi?id=51907
    Style selector should only be recalculated when the pending sheet count goes to zero
    
    Reviewed by Dan Bernstein.
    
    Shark says this is a significant performance improvement on some sites with lots of stylesheets.
    
    * dom/Document.cpp:
    (WebCore::Document::removePendingSheet):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75058 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 0273d62..c9e4aac 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2011-01-04  Antti Koivisto  <antti at apple.com>
+
+        Reviewed by Dan Bernstein.
+
+        https://bugs.webkit.org/show_bug.cgi?id=51907
+        Style selector should only be recalculated when the pending sheet count goes to zero
+        
+        Shark says this is a significant performance improvement on some sites with lots of stylesheets.
+
+        * dom/Document.cpp:
+        (WebCore::Document::removePendingSheet):
+
 2011-01-05  Carlos Garcia Campos  <cgarcia at igalia.com>
 
         Reviewed by Martin Robinson.
diff --git a/WebCore/dom/Document.cpp b/WebCore/dom/Document.cpp
index 0182fe5..5bfee03 100644
--- a/WebCore/dom/Document.cpp
+++ b/WebCore/dom/Document.cpp
@@ -2868,11 +2868,11 @@ void Document::removePendingSheet()
         printf("Stylesheet loaded at time %d. %d stylesheets still remain.\n", elapsedTime(), m_pendingStylesheets);
 #endif
 
-    styleSelectorChanged(RecalcStyleImmediately);
-
     if (m_pendingStylesheets)
         return;
 
+    styleSelectorChanged(RecalcStyleImmediately);
+
     ScriptableDocumentParser* parser = scriptableDocumentParser();
     if (parser)
         parser->executeScriptsWaitingForStylesheets();

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list