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

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

Issue 1410833004: Revert "Implement FullScreen using top layer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/FullscreenController.cpp
diff --git a/third_party/WebKit/Source/web/FullscreenController.cpp b/third_party/WebKit/Source/web/FullscreenController.cpp
index 6089612df2ac888b8eeeb78312cccbdfbb256429..019c1d2e18be77f7baabaf7b55f91b3117a9926d 100644
--- a/third_party/WebKit/Source/web/FullscreenController.cpp
+++ b/third_party/WebKit/Source/web/FullscreenController.cpp
@@ -137,13 +137,6 @@ void FullscreenController::didExitFullScreen()
void FullscreenController::enterFullScreenForElement(Element* element)
{
- // TODO(dsinclair): This should not be needed because we addToTopLayer
- // in Fullscreen::pushFullscreenElementStack but, the WebView code doesn't
- // call Fullscreen::requestFullscreen() and, instead, just enters and
- // exists itself. This should be unified so there is one way to go
- // fullscreen. crbug.com/538158
- element->document().addToTopLayer(element);
-
// We are already transitioning to fullscreen for a different element.
if (m_provisionalFullScreenElement) {
m_provisionalFullScreenElement = element;
@@ -169,13 +162,6 @@ void FullscreenController::exitFullScreenForElement(Element* element)
{
ASSERT(element);
- // TODO(dsinclair): This should not be needed because we addToTopLayer
- // in Fullscreen::popFullscreenElementStack but, the WebView code doesn't
- // call Fullscreen::requestFullscreen() and, instead, just enters and
- // exists itself. This should be unified so there is one way to go
- // fullscreen. crbug.com/538158
- element->document().removeFromTopLayer(element);
-
// The client is exiting full screen, so don't send a notification.
if (m_isCancelingFullScreen)
return;
@@ -192,9 +178,9 @@ void FullscreenController::updateSize()
updatePageScaleConstraints(false);
- Document* document = m_fullScreenFrame->document();
- if (Element* fullscreenElement = Fullscreen::currentFullScreenElementFrom(*document))
- Fullscreen::from(fullscreenElement->document()).didUpdateSize(*fullscreenElement);
+ LayoutFullScreen* layoutObject = Fullscreen::from(*m_fullScreenFrame->document()).fullScreenLayoutObject();
+ if (layoutObject)
+ layoutObject->updateStyle();
}
void FullscreenController::updatePageScaleConstraints(bool removeConstraints)
« no previous file with comments | « third_party/WebKit/Source/web/FullscreenController.h ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698