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

Unified Diff: third_party/WebKit/Source/core/css/MediaValuesInitialViewportTest.cpp

Issue 2431613002: Initial viewport is not the same as FrameView rect. (Closed)
Patch Set: DCHECK that initial viewport size is read from main frame only. Created 4 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/core/css/MediaValuesInitialViewportTest.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaValuesInitialViewportTest.cpp b/third_party/WebKit/Source/core/css/MediaValuesInitialViewportTest.cpp
index bbef135aeedbb41162d00d5999bb0b72366a5442..5773a49e7a46cf9b2521d8648b517d631c551f1a 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesInitialViewportTest.cpp
+++ b/third_party/WebKit/Source/core/css/MediaValuesInitialViewportTest.cpp
@@ -17,6 +17,7 @@ class MediaValuesInitialViewportTest : public ::testing::Test {
private:
void SetUp() override {
m_dummyPageHolder = DummyPageHolder::create(IntSize(320, 480));
+ document().view()->setInitialViewportSize(IntSize(320, 480));
}
std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValuesInitialViewport.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698