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

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: Remove pause in test Created 3 years, 5 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 486d5310abcee8f09af2d149e063f02505b910ab..5700d701d8e864b735a27d3f3a0ef320ebfa0b57 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(
+ MouseEventManager::FakeMouseMoveReason::kPerFrame);
+ }
if (focused_element_ && !focused_element_->IsFocusable())
ClearFocusedElementSoon();

Powered by Google App Engine
This is Rietveld 408576698