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

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

Issue 1297803002: Remove FOUC avoidance from BlockPainter and DeprecatedPaintLayerPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove extra assert. Created 5 years, 4 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698