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

Unified Diff: Source/core/layout/LayoutObject.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 | « LayoutTests/fast/events/mouse-cursor-style-change-iframe-expected.txt ('k') | Source/core/page/Chrome.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 73f7f8464b0bf089ed79b73fa215138540ef74ba..ae35192119aa50d4c77200b9630a5713d0301c89 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -1943,7 +1943,7 @@ void LayoutObject::styleDidChange(StyleDifference diff, const ComputedStyle* old
if (oldStyle && !areCursorsEqual(oldStyle, style())) {
if (LocalFrame* frame = this->frame())
- frame->eventHandler().scheduleCursorUpdate();
+ frame->page()->deprecatedLocalMainFrame()->eventHandler().scheduleCursorUpdate();
}
}
« no previous file with comments | « LayoutTests/fast/events/mouse-cursor-style-change-iframe-expected.txt ('k') | Source/core/page/Chrome.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698