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

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

Issue 1363023005: Implement FullScreen using top layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 019c1d2e18be77f7baabaf7b55f91b3117a9926d..67d46112857391fa365fd66cac1d925e6ef494f9 100644
--- a/third_party/WebKit/Source/web/FullscreenController.cpp
+++ b/third_party/WebKit/Source/web/FullscreenController.cpp
@@ -178,9 +178,10 @@ void FullscreenController::updateSize()
updatePageScaleConstraints(false);
- LayoutFullScreen* layoutObject = Fullscreen::from(*m_fullScreenFrame->document()).fullScreenLayoutObject();
- if (layoutObject)
- layoutObject->updateStyle();
+ Document* document = m_fullScreenFrame->document();
+ Element* fullscreenElement = Fullscreen::currentFullScreenElementFrom(*document);
+ if (fullscreenElement)
+ Fullscreen::from(fullscreenElement->document()).updatedSize(fullscreenElement);
}
void FullscreenController::updatePageScaleConstraints(bool removeConstraints)

Powered by Google App Engine
This is Rietveld 408576698