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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrameTest.cpp

Issue 2730573003: Moved FrameHost::m_visualViewport to Page (Closed)
Patch Set: Fixed some compile errors on mac and android Created 3 years, 9 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/frame/LocalFrameTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp b/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp
index af67b260fe9846fb2b3c714eb28e4c16b4694527..2055387a7c6f7edb8b4f3bc62bad546ca1a67872 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrameTest.cpp
@@ -127,11 +127,11 @@ TEST_F(LocalFrameTest, dragImageForSelectionUsesPageScaleFactor) {
setBodyContent(
"<div>Hello world! This tests that the bitmap for drag image is scaled "
"by page scale factor</div>");
- frame().host()->visualViewport().setScale(1);
+ frame().page()->visualViewport().setScale(1);
frame().selection().selectAll();
updateAllLifecyclePhases();
const std::unique_ptr<DragImage> image1(frame().dragImageForSelection(0.75f));
- frame().host()->visualViewport().setScale(2);
+ frame().page()->visualViewport().setScale(2);
frame().selection().selectAll();
updateAllLifecyclePhases();
const std::unique_ptr<DragImage> image2(frame().dragImageForSelection(0.75f));
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/html/HTMLInputElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698