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

Unified Diff: Source/core/dom/Document.cpp

Issue 1064543002: Set hovered state of current Hovered node even if it is also common ancestor of oldHovered node and (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments Created 5 years, 7 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index cd1f453988f191fa7115e873f4c6e5fb25845c9b..255bc8198ced734a5f6d7e08608d7c04db38e58e 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5344,7 +5344,7 @@ void Document::updateHoverActiveState(const HitTestRequest& request, Element* in
sawCommonAncestor = true;
if (allowActiveChanges)
nodesToAddToChain[i]->setActive(true);
- if (!sawCommonAncestor) {
+ if (!sawCommonAncestor || nodesToAddToChain[i] == m_hoverNode) {
nodesToAddToChain[i]->setHovered(true);
}
}

Powered by Google App Engine
This is Rietveld 408576698