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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 837633003: Delete dead painting code around m_pendingSheetLayout. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index 25f6ef19940f51567cfb61ea5097e244e5e1f55f..f2d6ac805dbc4024b4e51f14861f37b901ef2a72 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -242,7 +242,6 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
, TreeScope(*this)
, m_module(nullptr)
, m_evaluateMediaQueriesOnStyleRecalc(false)
- , m_pendingSheetLayout(NoLayoutWithPendingSheets)
, m_frame(initializer.frame())
, m_domWindow(m_frame ? m_frame->domWindow() : 0)
, m_importsController(initializer.importsController())
@@ -1640,15 +1639,7 @@ void Document::styleResolverChanged()
// We just skip that case.
if (!m_styleEngine)
return;
-
m_styleEngine->resolverChanged();
-
- // FIXME(sky): didLayoutWithPendingStylesheets never returns true anymore. Remove this.
- if (didLayoutWithPendingStylesheets()) {
- // 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;
- }
}
void Document::setHoverNode(PassRefPtr<Node> newHoverNode)
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698