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

Unified Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

Issue 2199783002: Clarify fullscreenElement vs. currentFullScreenElement distinction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/web/WebPluginContainerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
index d6ea2565cecc0eb2afd2a57486842fcc0d65e422..586cd17f3b835c449555d8cbe5983047242a0c68 100644
--- a/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
@@ -321,9 +321,7 @@ void WebPluginContainerImpl::requestFullscreen()
bool WebPluginContainerImpl::isFullscreenElement() const
{
- if (Fullscreen* fullscreen = Fullscreen::fromIfExists(m_element->document()))
- return m_element == fullscreen->webkitCurrentFullScreenElement();
- return false;
+ return Fullscreen::isCurrentFullScreenElement(*m_element);
}
void WebPluginContainerImpl::cancelFullscreen()
« no previous file with comments | « third_party/WebKit/Source/web/FullscreenController.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698