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

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

Issue 497723002: Merge willEnter/willExitFullScreen into didEnter/didExitFullScreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/core/dom/Fullscreen.h ('k') | Source/web/FullscreenController.h » ('j') | 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 84473a615656305dfbe5b72854fbf478644f13d4..14dbbd8614dd40befb4c00aefa5aea233ee679a1 100644
--- a/Source/core/dom/Fullscreen.cpp
+++ b/Source/core/dom/Fullscreen.cpp
@@ -409,7 +409,7 @@ bool Fullscreen::fullscreenEnabled(Document& document)
return fullscreenIsAllowedForAllOwners(document) && fullscreenIsSupported(document);
}
-void Fullscreen::willEnterFullScreenForElement(Element* element)
+void Fullscreen::didEnterFullScreenForElement(Element* element)
{
ASSERT(element);
if (!document()->isActive())
@@ -439,22 +439,13 @@ void Fullscreen::willEnterFullScreenForElement(Element* element)
// FIXME: This should not call updateStyleIfNeeded.
document()->setNeedsStyleRecalc(SubtreeStyleChange);
document()->updateRenderTreeIfNeeded();
-}
-
-void Fullscreen::didEnterFullScreenForElement(Element*)
-{
- if (!m_fullScreenElement)
- return;
-
- if (!document()->isActive())
- return;
m_fullScreenElement->didBecomeFullscreenElement();
m_eventQueueTimer.startOneShot(0, FROM_HERE);
}
-void Fullscreen::willExitFullScreenForElement(Element*)
+void Fullscreen::didExitFullScreenForElement(Element*)
falken 2014/08/25 05:07:54 Should we remove the unused parameter?
philipj_slow 2014/08/25 08:06:30 Definitely, but I thought it might be cleaner to d
{
if (!m_fullScreenElement)
return;
@@ -463,15 +454,6 @@ void Fullscreen::willExitFullScreenForElement(Element*)
return;
m_fullScreenElement->willStopBeingFullscreenElement();
-}
-
-void Fullscreen::didExitFullScreenForElement(Element*)
-{
- if (!m_fullScreenElement)
- return;
-
- if (!document()->isActive())
- return;
m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
« no previous file with comments | « Source/core/dom/Fullscreen.h ('k') | Source/web/FullscreenController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698