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

Unified Diff: sky/engine/core/page/Page.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/Page.h ('k') | sky/engine/core/page/PageAnimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/Page.cpp
diff --git a/sky/engine/core/page/Page.cpp b/sky/engine/core/page/Page.cpp
index 45d176652147faa7a18361b8017b19873326222e..e2af1fc41f3bd4c2863db6ca38a3d7c89e06b24d 100644
--- a/sky/engine/core/page/Page.cpp
+++ b/sky/engine/core/page/Page.cpp
@@ -62,7 +62,6 @@ float deviceScaleFactor(LocalFrame* frame)
Page::Page(PageClients& pageClients, ServiceProvider* services)
: SettingsDelegate(Settings::create())
- , m_animator(this)
, m_chromeClient(pageClients.chromeClient)
, m_dragCaretController(DragCaretController::create())
, m_focusController(FocusController::create(this))
@@ -72,7 +71,6 @@ Page::Page(PageClients& pageClients, ServiceProvider* services)
, m_spellCheckerClient(pageClients.spellCheckerClient)
, m_deviceScaleFactor(1)
, m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval())
- , m_visibilityState(PageVisibilityStateVisible)
#if ENABLE(ASSERT)
, m_isPainting(false)
#endif
@@ -158,29 +156,6 @@ double Page::timerAlignmentInterval() const
return m_timerAlignmentInterval;
}
-void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitialState)
-{
- if (m_visibilityState == visibilityState)
- return;
- m_visibilityState = visibilityState;
-
- if (visibilityState == blink::PageVisibilityStateVisible)
- setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval());
- else
- setTimerAlignmentInterval(DOMTimer::hiddenPageAlignmentInterval());
-
- if (!isInitialState)
- lifecycleNotifier().notifyPageVisibilityChanged();
-
- if (!isInitialState && m_mainFrame)
- mainFrame()->didChangeVisibilityState();
-}
-
-PageVisibilityState Page::visibilityState() const
-{
- return m_visibilityState;
-}
-
void Page::addMultisamplingChangedObserver(MultisamplingChangedObserver* observer)
{
m_multisamplingChangedObservers.add(observer);
« no previous file with comments | « sky/engine/core/page/Page.h ('k') | sky/engine/core/page/PageAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698