Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 0bf2635ed61ec663088f4524b0f5185850c6ac07..8fed156087355271b16ff68e08a9cbddbeddd11e 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3446,7 +3446,7 @@ void Document::styleResolverChanged(StyleResolverUpdateMode updateMode) |
m_styleEngine->resolverChanged(updateMode); |
- if (didLayoutWithPendingStylesheets() && haveStylesheetsLoaded()) { |
+ if (didLayoutWithPendingStylesheets() && !m_styleEngine->hasPendingSheets()) { |
// We need to manually repaint because we avoid doing all repaints in layout or style |
// recalc while sheets are still loading to avoid FOUC. |
m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; |