Chromium Code Reviews| 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..cabeab64aada53a42b915a0c062f4bc98152a2eb 100644 |
| --- a/sky/engine/core/dom/Document.cpp |
| +++ b/sky/engine/core/dom/Document.cpp |
| @@ -941,7 +941,7 @@ 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()) |
| + if (!isActive()) |
| return false; |
| return true; |
|
abarth-chromium
2015/01/13 07:17:41
return isActive()
esprehn
2015/01/13 07:31:29
Heh, there's already a check for isActive() in thi
|
| } |
| @@ -1441,11 +1441,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); |