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

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

Issue 835273006: Remove isRenderingReady. (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') | no next file » | 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 c718870f10d5fdf74956f6de2567d223270aaec4..4784cffa892b1ab7899c29eaa27b6cb64134b5dd 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -1443,18 +1443,7 @@ void Document::setParsing(bool b)
bool Document::shouldScheduleLayout() const
{
- // This function will only be called when FrameView thinks a layout is needed.
- // This enforces a couple extra rules.
- //
- // (a) Only schedule a layout once the stylesheets are loaded.
- // (b) Only schedule layout once we have a body element.
- if (!isActive())
- return false;
-
- if (isRenderingReady())
- return true;
-
- return false;
+ return isActive();
}
int Document::elapsedTime() const
@@ -1526,7 +1515,7 @@ void Document::didLoadAllParserBlockingResources()
void Document::resumeParserWaitingForResourcesTimerFired(Timer<Document>*)
{
- if (!isRenderingReady())
+ if (!haveImportsLoaded())
return;
if (m_parser)
m_parser->resumeAfterWaitingForImports();
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698