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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.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/inspector/InspectorLayerTreeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
index 292c16c37b7d1ea75cb17f48ebcdfb1f13b1b94a..84a94fe37e04f57b7df727b6789e1743a5e1605f 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -31,9 +31,9 @@
#include "core/inspector/InspectorLayerTreeAgent.h"
+#include <memory>
#include "core/dom/DOMNodeIds.h"
#include "core/dom/Document.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/VisualViewport.h"
@@ -45,6 +45,7 @@
#include "core/layout/compositing/PaintLayerCompositor.h"
#include "core/loader/DocumentLoader.h"
#include "core/page/ChromeClient.h"
+#include "core/page/Page.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/CompositingReasons.h"
#include "platform/graphics/GraphicsLayer.h"
@@ -55,7 +56,6 @@
#include "public/platform/WebLayer.h"
#include "wtf/text/Base64.h"
#include "wtf/text/StringBuilder.h"
-#include <memory>
namespace blink {
@@ -302,7 +302,7 @@ PaintLayerCompositor* InspectorLayerTreeAgent::paintLayerCompositor() {
GraphicsLayer* InspectorLayerTreeAgent::rootGraphicsLayer() {
return m_inspectedFrames->root()
- ->host()
+ ->page()
->visualViewport()
.rootGraphicsLayer();
}

Powered by Google App Engine
This is Rietveld 408576698