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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 5f661d84653b150493e1274b2d8efa8960b7ea9b..3bbdaa9b7c55d69ceae876094311a3f94e0caff2 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2089,8 +2089,10 @@ void Document::UpdateStyleAndLayoutTree() {
// have been detached (for example, by setting display:none in the :hover
// style), schedule another mouseMove event to check if any other elements
// ended up under the mouse pointer due to re-layout.
- if (HoverElement() && !HoverElement()->GetLayoutObject() && GetFrame())
- GetFrame()->GetEventHandler().DispatchFakeMouseMoveEventSoon();
+ if (HoverElement() && !HoverElement()->GetLayoutObject() && GetFrame()) {
+ GetFrame()->GetEventHandler().DispatchFakeMouseMoveEventSoon(
+ DispatchInterval::kPerFrame);
+ }
if (focused_element_ && !focused_element_->IsFocusable())
ClearFocusedElementSoon();

Powered by Google App Engine
This is Rietveld 408576698