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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrameView.cpp

Issue 2956023004: Add a flag to update hover effect when a layout is changed (Closed)
Patch Set: hover layout Created 3 years, 6 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
Index: third_party/WebKit/Source/core/frame/LocalFrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrameView.cpp b/third_party/WebKit/Source/core/frame/LocalFrameView.cpp
index 7f2a73a612771758a0c6b7deceec0e5ce85a2e3b..70b800cb0de5f9a6f067cfe24f64feeeaf7d5b75 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrameView.cpp
@@ -2596,7 +2596,11 @@ void LocalFrameView::PerformPostLayoutTasks() {
// if there are no RemoteFrame ancestors in the frame tree. Use of
// localFrameRoot() is discouraged but will change when cursor update
// scheduling is moved from EventHandler to PageEventHandler.
- GetFrame().LocalFrameRoot().GetEventHandler().ScheduleCursorUpdate();
+
+ // Fire a fake a mouse move event to update hover state and mouse cursor, and
+ // send the right mouse out/over events.
+ frame_->GetEventHandler().DispatchFakeMouseMoveEventSoon(
+ DispatchInterval::kPerFrame);
UpdateGeometries();
@@ -4170,7 +4174,8 @@ void LocalFrameView::UpdateScrollOffset(const ScrollOffset& offset,
Document* document = frame_->GetDocument();
document->EnqueueScrollEventForNode(document);
- frame_->GetEventHandler().DispatchFakeMouseMoveEventSoon();
+ frame_->GetEventHandler().DispatchFakeMouseMoveEventSoon(
+ DispatchInterval::kDuringScroll);
if (scroll_type == kUserScroll || scroll_type == kCompositorScroll) {
Page* page = GetFrame().GetPage();
if (page)

Powered by Google App Engine
This is Rietveld 408576698