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

Unified Diff: Source/core/page/Chrome.cpp

Issue 1121433003: Fix mouse cursor update timer to be page-global instead of per-frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: bokan cr feedback Created 5 years, 8 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 | « Source/core/page/Chrome.h ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Chrome.cpp
diff --git a/Source/core/page/Chrome.cpp b/Source/core/page/Chrome.cpp
index ebc849ccffbf6e86d7f872fe840d543fd0a65694..a6f9cb7bae589cec26f3fc30fdbbacef8d153205 100644
--- a/Source/core/page/Chrome.cpp
+++ b/Source/core/page/Chrome.cpp
@@ -336,9 +336,15 @@ void Chrome::dispatchViewportPropertiesDidChange(const ViewportDescription& desc
void Chrome::setCursor(const Cursor& cursor)
{
+ m_lastSetMouseCursorForTesting = cursor;
m_client->setCursor(cursor);
}
+Cursor Chrome::getLastSetCursorForTesting() const
+{
+ return m_lastSetMouseCursorForTesting;
+}
+
void Chrome::scheduleAnimation()
{
m_page->animator().setAnimationFramePending();
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698