Update style asynchronously after style sheet load
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Jan 2014 02:04:38 +0000 (02:04 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Jan 2014 02:04:38 +0000 (02:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=127563

Reviewed by Andreas Kling.

Since we don't attach synchronously we don't need to recalc style synchronously either.

* dom/Document.cpp:
(WebCore::Document::didRemoveAllPendingStylesheet):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@162744 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp

index 71f5ef4..8a74726 100644 (file)
@@ -1,3 +1,15 @@
+2014-01-24  Antti Koivisto  <antti@apple.com>
+
+        Update style asynchronously after style sheet load
+        https://bugs.webkit.org/show_bug.cgi?id=127563
+
+        Reviewed by Andreas Kling.
+        
+        Since we don't attach synchronously we don't need to recalc style synchronously either.
+
+        * dom/Document.cpp:
+        (WebCore::Document::didRemoveAllPendingStylesheet):
+
 2014-01-24  Zalan Bujtas  <zalan@apple.com>
 
         Subpixel layout: Default style of input type=checkbox/radio (0.5ex) adds 1px extra margin on both left and right.
index 844580e..b0e6b78 100644 (file)
@@ -2798,7 +2798,7 @@ void Document::didRemoveAllPendingStylesheet()
 {
     m_needsNotifyRemoveAllPendingStylesheet = false;
 
-    styleResolverChanged(RecalcStyleIfNeeded);
+    styleResolverChanged(DeferRecalcStyleIfNeeded);
 
     if (ScriptableDocumentParser* parser = scriptableDocumentParser())
         parser->executeScriptsWaitingForStylesheets();