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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 290883002: Clear hover flag after switching full-screen and inline video. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refresh hover flag after switching full-screen and inline video Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 8fd4af03e209fc46bb74cb770e05de7302d4e013..4d219ea723d4cbc4534912877552170cd0c8f5ee 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -55,6 +55,7 @@
#include "core/html/track/TextTrackCueList.h"
#include "core/html/track/TextTrackList.h"
#include "core/loader/FrameLoader.h"
+#include "core/page/EventHandler.h"
#include "core/rendering/RenderVideo.h"
#include "core/rendering/RenderView.h"
#include "core/rendering/compositing/RenderLayerCompositor.h"
@@ -3183,6 +3184,8 @@ void HTMLMediaElement::didBecomeFullscreenElement()
mediaControls()->enteredFullscreen();
if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isHTMLVideoElement(*this))
document().renderView()->compositor()->setCompositingLayersNeedRebuild();
+ if (document().frame())
+ document().frame()->eventHandler().scheduleHoverStateUpdate();
}
void HTMLMediaElement::willStopBeingFullscreenElement()
@@ -3191,6 +3194,8 @@ void HTMLMediaElement::willStopBeingFullscreenElement()
mediaControls()->exitedFullscreen();
if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && isHTMLVideoElement(*this))
document().renderView()->compositor()->setCompositingLayersNeedRebuild();
+ if (document().frame())
+ document().frame()->eventHandler().scheduleHoverStateUpdate();
}
blink::WebLayer* HTMLMediaElement::platformLayer() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698