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

Unified Diff: third_party/WebKit/Source/web/PageOverlay.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/web/PageOverlay.cpp
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp
index 44b93d59b7a0692d1c5e88f3763b49e615101273..fee8fd2c59ff26181062b899df445ca1e7d02b2b 100644
--- a/third_party/WebKit/Source/web/PageOverlay.cpp
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp
@@ -28,9 +28,10 @@
#include "web/PageOverlay.h"
-#include "core/frame/FrameHost.h"
+#include <memory>
#include "core/frame/LocalFrame.h"
#include "core/frame/VisualViewport.h"
+#include "core/page/Page.h"
#include "core/page/scrolling/ScrollingCoordinator.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/GraphicsLayer.h"
@@ -42,7 +43,6 @@
#include "web/WebFrameWidgetImpl.h"
#include "web/WebLocalFrameImpl.h"
#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -87,7 +87,7 @@ void PageOverlay::update() {
platformLayer->addMainThreadScrollingReasons(
MainThreadScrollingReason::kPageOverlay);
if (frame->isMainFrame()) {
- frame->host()->visualViewport().containerLayer()->addChild(m_layer.get());
+ frame->page()->visualViewport().containerLayer()->addChild(m_layer.get());
} else {
toWebFrameWidgetImpl(m_frameImpl->frameWidget())
->rootGraphicsLayer()
@@ -95,7 +95,7 @@ void PageOverlay::update() {
}
}
- FloatSize size(frame->host()->visualViewport().size());
+ FloatSize size(frame->page()->visualViewport().size());
if (size != m_layer->size())
m_layer->setSize(size);
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698