Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 20ef2148476d94dc1c8c802d30dfd4bd4affeb7f..104fcbe2bdb334938eba31979f97165aa627e3b9 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2008,7 +2008,7 @@ void Document::updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks |
HTMLElement* bodyElement = body(); |
if (bodyElement && !bodyElement->renderer() && m_pendingSheetLayout == NoLayoutWithPendingSheets) { |
m_pendingSheetLayout = DidLayoutWithPendingSheets; |
- styleResolverChanged(RecalcStyleImmediately); |
+ styleResolverChanged(RecalcStyleDeferred); |
} else if (m_hasNodesWithPlaceholderStyle) { |
// If new nodes have been added or style recalc has been done with style sheets still |
// pending, some nodes may not have had their real style calculated yet. Normally this |