| Index: sky/engine/core/dom/Document.cpp
|
| diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
|
| index 9d85c2934d88a71013aadd801ae22a3d831b1145..aaaa486408a3d6c8179f37d5dc3c3aae34089bae 100644
|
| --- a/sky/engine/core/dom/Document.cpp
|
| +++ b/sky/engine/core/dom/Document.cpp
|
| @@ -948,13 +948,21 @@ void Document::scheduleRenderTreeUpdate()
|
| ASSERT(shouldScheduleRenderTreeUpdate());
|
| ASSERT(needsRenderTreeUpdate());
|
|
|
| - page()->animator().scheduleVisualUpdate();
|
| + scheduleVisualUpdate();
|
| +
|
| + // TODO(esprehn): We should either rename this state, or change the other
|
| + // users of scheduleVisualUpdate() so they don't expect different states.
|
| m_lifecycle.ensureStateAtMost(DocumentLifecycle::VisualUpdatePending);
|
|
|
| TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "ScheduleStyleRecalculation", TRACE_EVENT_SCOPE_PROCESS, "frame", frame());
|
| TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), "CallStack", TRACE_EVENT_SCOPE_PROCESS, "stack", InspectorCallStackEvent::currentCallStack());
|
| }
|
|
|
| +void Document::scheduleVisualUpdate()
|
| +{
|
| + page()->animator().scheduleVisualUpdate();
|
| +}
|
| +
|
| void Document::updateDistributionIfNeeded()
|
| {
|
| ScriptForbiddenScope forbidScript;
|
|
|