Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 8900974ee35a7f71134db584b77912b23a1d0b27..a6b44f96311547563a39b13d928aa08c8d4c6a01 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3381,15 +3381,8 @@ void Document::styleResolverChanged(StyleResolverUpdateMode updateMode) |
{ |
styleEngine().resolverChanged(updateMode); |
- if (didLayoutWithPendingStylesheets() && !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. |
+ if (m_pendingSheetLayout == DidLayoutWithPendingSheets && !styleEngine().hasPendingSheets()) |
m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; |
- |
- ASSERT(layoutView() || importsController()); |
- if (layoutView()) |
- layoutView()->invalidatePaintForViewAndCompositedLayers(); |
- } |
} |
void Document::styleResolverMayHaveChanged() |