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

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

Issue 552903004: Update hover state after entering and leaving fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revised Layouttest case Created 6 years, 3 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/fullscreen/enter-exit-full-screen-hover-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Fullscreen.cpp
diff --git a/Source/core/dom/Fullscreen.cpp b/Source/core/dom/Fullscreen.cpp
index 14dbbd8614dd40befb4c00aefa5aea233ee679a1..64b67a512ecf0eaffa02f3a1ab79bd769c43df31 100644
--- a/Source/core/dom/Fullscreen.cpp
+++ b/Source/core/dom/Fullscreen.cpp
@@ -39,6 +39,7 @@
#include "core/html/HTMLMediaElement.h"
#include "core/page/Chrome.h"
#include "core/page/ChromeClient.h"
+#include "core/page/EventHandler.h"
#include "core/rendering/RenderFullScreen.h"
#include "platform/UserGestureIndicator.h"
@@ -442,6 +443,9 @@ void Fullscreen::didEnterFullScreenForElement(Element* element)
m_fullScreenElement->didBecomeFullscreenElement();
+ if (document()->frame())
+ document()->frame()->eventHandler().scheduleHoverStateUpdate();
+
m_eventQueueTimer.startOneShot(0, FROM_HERE);
}
@@ -465,6 +469,9 @@ void Fullscreen::didExitFullScreenForElement(Element*)
m_fullScreenElement = nullptr;
document()->setNeedsStyleRecalc(SubtreeStyleChange);
+ if (document()->frame())
+ document()->frame()->eventHandler().scheduleHoverStateUpdate();
+
// When fullyExitFullscreen is called, we call exitFullscreen on the topDocument(). That means
// that the events will be queued there. So if we have no events here, start the timer on the
// exiting document.
« no previous file with comments | « LayoutTests/fullscreen/enter-exit-full-screen-hover-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698