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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 1139033006: Implement FullScreen using top layer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« Source/web/FullscreenController.cpp ('K') | « Source/web/FullscreenController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index 2ea914dcf633bdbefd3dd7fec1a736ce30f1fb0a..57588bd6afd2fa8575c43c3e9f3b2661769edd25 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -63,7 +63,6 @@
#include "core/html/HTMLMediaElement.h"
#include "core/input/EventHandler.h"
#include "core/layout/HitTestResult.h"
-#include "core/layout/LayoutFullScreen.h"
#include "core/layout/LayoutView.h"
#include "core/layout/compositing/DeprecatedPaintLayerCompositor.h"
#include "core/loader/DocumentLoader.h"
@@ -6484,7 +6483,8 @@ TEST_P(ParameterizedWebFrameTest, FullscreenLayerSize)
ASSERT_TRUE(Fullscreen::isFullScreen(*document));
// Verify that the element is sized to the viewport.
- LayoutFullScreen* fullscreenLayoutObject = Fullscreen::from(*document).fullScreenLayoutObject();
+ Element* fullscreenElement = Fullscreen::currentFullScreenElementFrom(*document);
+ LayoutBox* fullscreenLayoutObject = toLayoutBox(fullscreenElement->layoutObject());
EXPECT_EQ(viewportWidth, fullscreenLayoutObject->logicalWidth().toInt());
EXPECT_EQ(viewportHeight, fullscreenLayoutObject->logicalHeight().toInt());
@@ -6588,7 +6588,8 @@ TEST_P(ParameterizedWebFrameTest, FullscreenSubframe)
webViewImpl->layout();
// Verify that the element is sized to the viewport.
- LayoutFullScreen* fullscreenLayoutObject = Fullscreen::from(*document).fullScreenLayoutObject();
+ Element* fullscreenElement = Fullscreen::currentFullScreenElementFrom(*document);
+ LayoutBox* fullscreenLayoutObject = toLayoutBox(fullscreenElement->layoutObject());
EXPECT_EQ(viewportWidth, fullscreenLayoutObject->logicalWidth().toInt());
EXPECT_EQ(viewportHeight, fullscreenLayoutObject->logicalHeight().toInt());
« Source/web/FullscreenController.cpp ('K') | « Source/web/FullscreenController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698