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

Unified Diff: sky/engine/core/page/PageAnimator.cpp

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/page/PageAnimator.h ('k') | sky/engine/core/page/PageVisibilityState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/PageAnimator.cpp
diff --git a/sky/engine/core/page/PageAnimator.cpp b/sky/engine/core/page/PageAnimator.cpp
deleted file mode 100644
index 84f09219405d7d7373f98a6ca3b31742f5660345..0000000000000000000000000000000000000000
--- a/sky/engine/core/page/PageAnimator.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/engine/core/page/PageAnimator.h"
-
-#include "sky/engine/core/animation/DocumentAnimations.h"
-#include "sky/engine/core/dom/Document.h"
-#include "sky/engine/core/frame/FrameView.h"
-#include "sky/engine/core/frame/LocalFrame.h"
-#include "sky/engine/core/page/ChromeClient.h"
-#include "sky/engine/core/page/Page.h"
-#include "sky/engine/core/painting/PaintingTasks.h"
-#include "sky/engine/platform/Logging.h"
-
-namespace blink {
-
-PageAnimator::PageAnimator(Page* page)
- : m_page(page)
- , m_servicingAnimations(false)
- , m_updatingLayoutAndStyleForPainting(false)
-{
-}
-
-void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
-{
- TemporaryChange<bool> servicing(m_servicingAnimations, true);
-
- RefPtr<Document> document = m_page->mainFrame()->document();
-
- DocumentAnimations::updateAnimationTimingForAnimationFrame(*document, monotonicAnimationStartTime);
- document->serviceScriptedAnimations(monotonicAnimationStartTime);
-}
-
-void PageAnimator::scheduleVisualUpdate()
-{
- if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting)
- return;
- m_page->scheduleVisualUpdate();
-}
-
-void PageAnimator::updateLayoutAndStyleForPainting(LocalFrame* rootFrame)
-{
- RefPtr<FrameView> view = rootFrame->view();
-
- TemporaryChange<bool> servicing(m_updatingLayoutAndStyleForPainting, true);
-
- view->setFrameRect(view->frameRect());
- view->updateLayoutAndStyleForPainting();
-
- // TODO(abarth): Remove these calls to updateLayoutAndStyleForPainting
- // once requestPaint callbacks can't dirty layout.
- while (PaintingTasks::serviceRequests())
- view->updateLayoutAndStyleForPainting();
-
- PaintingTasks::drainCommits();
-
- ASSERT(m_page->mainFrame()->document()->lifecycle().state() == DocumentLifecycle::StyleAndLayoutClean);
-}
-
-}
« no previous file with comments | « sky/engine/core/page/PageAnimator.h ('k') | sky/engine/core/page/PageVisibilityState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698