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

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

Issue 217163004: Remove the fullScreenEnabled setting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/media/video-controls-fullscreen-with-controller.html ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/FullscreenElementStack.cpp
diff --git a/Source/core/dom/FullscreenElementStack.cpp b/Source/core/dom/FullscreenElementStack.cpp
index 8fb5ebceaff45fd9e99583562649b08a5d3600e1..b5225009a2037e7a9ea7988d9ec154e204d39939 100644
--- a/Source/core/dom/FullscreenElementStack.cpp
+++ b/Source/core/dom/FullscreenElementStack.cpp
@@ -200,8 +200,6 @@ void FullscreenElementStack::requestFullScreenForElement(Element* element, unsig
break;
// There is a previously-established user preference, security risk, or platform limitation.
- if (!document()->settings() || !document()->settings()->fullScreenEnabled())
- break;
// 2. Let doc be element's node document. (i.e. "this")
Document* currentDoc = document();
@@ -374,9 +372,6 @@ void FullscreenElementStack::webkitWillEnterFullScreenForElement(Element* elemen
if (!document()->isActive())
return;
- ASSERT(document()->settings()); // If we're active we must have settings.
- ASSERT(document()->settings()->fullScreenEnabled());
-
if (m_fullScreenRenderer)
m_fullScreenRenderer->unwrapRenderer();
« no previous file with comments | « LayoutTests/media/video-controls-fullscreen-with-controller.html ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698