Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: Source/core/dom/Document.cpp

Issue 339573005: Wrong pending sheets test causing FOUC. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698