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

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

Issue 880713003: Rename scheduleAnimation() to scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase. 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/page/Chrome.h ('k') | sky/engine/core/page/ChromeClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/Chrome.cpp
diff --git a/sky/engine/core/page/Chrome.cpp b/sky/engine/core/page/Chrome.cpp
index 4d51cdb7b81d8125c462ba1d4b02a2ceead1395f..6114c6f4b24bae3ec40f8ad63eebfee5e7deaef0 100644
--- a/sky/engine/core/page/Chrome.cpp
+++ b/sky/engine/core/page/Chrome.cpp
@@ -25,7 +25,6 @@
#include "sky/engine/core/dom/Document.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/rendering/HitTestResult.h"
#include "sky/engine/platform/Logging.h"
#include "sky/engine/platform/geometry/FloatRect.h"
@@ -35,9 +34,8 @@
namespace blink {
-Chrome::Chrome(Page* page, ChromeClient* client)
- : m_page(page)
- , m_client(client)
+Chrome::Chrome(ChromeClient* client)
+ : m_client(client)
{
ASSERT(m_client);
}
@@ -46,9 +44,9 @@ Chrome::~Chrome()
{
}
-PassOwnPtr<Chrome> Chrome::create(Page* page, ChromeClient* client)
+PassOwnPtr<Chrome> Chrome::create(ChromeClient* client)
{
- return adoptPtr(new Chrome(page, client));
+ return adoptPtr(new Chrome(client));
}
IntRect Chrome::rootViewToScreen(const IntRect& rect) const
@@ -106,11 +104,9 @@ void Chrome::setCursor(const Cursor& cursor)
m_client->setCursor(cursor);
}
-void Chrome::scheduleAnimation()
+void Chrome::scheduleVisualUpdate()
{
- WTF_LOG(ScriptedAnimationController, "Chrome::scheduleAnimation");
- m_page->animator().setAnimationFramePending();
- m_client->scheduleAnimation();
+ m_client->scheduleVisualUpdate();
}
void Chrome::willBeDestroyed()
« no previous file with comments | « sky/engine/core/page/Chrome.h ('k') | sky/engine/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698