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

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

Issue 853433002: Remove Document::shouldScheduleLayout. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove redundant call. 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/frame/FrameView.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 4784cffa892b1ab7899c29eaa27b6cb64134b5dd..6e00ce3644000aa275a1e64e52793b9c8e90eb43 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -941,8 +941,6 @@ bool Document::shouldScheduleRenderTreeUpdate() const
// InPreLayout will recalc style itself. There's no reason to schedule another recalc.
if (m_lifecycle.state() == DocumentLifecycle::InPreLayout)
return false;
- if (!shouldScheduleLayout())
- return false;
return true;
}
@@ -1441,11 +1439,6 @@ void Document::setParsing(bool b)
m_elementDataCache = ElementDataCache::create();
}
-bool Document::shouldScheduleLayout() const
-{
- return isActive();
-}
-
int Document::elapsedTime() const
{
return static_cast<int>((currentTime() - m_startTime) * 1000);
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698