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

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

Issue 1810853002: Blink Platform: Erase GraphicsLayerFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 36f962068c3dd39c9ee25752b4aa7b901fa75685..eabce45863cd6fc664be252db0e7f008f2777aab 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -47,7 +47,6 @@
#include "platform/geometry/DoubleRect.h"
#include "platform/geometry/FloatSize.h"
#include "platform/graphics/GraphicsLayer.h"
-#include "platform/graphics/GraphicsLayerFactory.h"
#include "platform/scroll/Scrollbar.h"
#include "platform/scroll/ScrollbarThemeOverlay.h"
#include "public/platform/WebCompositorSupport.h"
@@ -62,7 +61,6 @@ using blink::WebScrollbar;
using blink::WebScrollbarLayer;
using blink::FrameHost;
using blink::GraphicsLayer;
-using blink::GraphicsLayerFactory;
namespace blink {
@@ -276,7 +274,7 @@ bool VisualViewport::magnifyScaleAroundAnchor(float magnifyDelta, const FloatPoi
// +- verticalScrollbarLayer [ owned by PaintLayerCompositor ]
// +- scroll corner (non-overlay only) [ owned by PaintLayerCompositor ]
//
-void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot, GraphicsLayerFactory* graphicsLayerFactory)
+void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot)
{
TRACE_EVENT1("blink", "VisualViewport::attachToLayerTree", "currentLayerTreeRoot", (bool)currentLayerTreeRoot);
if (!currentLayerTreeRoot) {
@@ -296,13 +294,13 @@ void VisualViewport::attachToLayerTree(GraphicsLayer* currentLayerTreeRoot, Grap
&& !m_innerViewportContainerLayer);
// FIXME: The root transform layer should only be created on demand.
- m_rootTransformLayer = GraphicsLayer::create(graphicsLayerFactory, this);
- m_innerViewportContainerLayer = GraphicsLayer::create(graphicsLayerFactory, this);
- m_overscrollElasticityLayer = GraphicsLayer::create(graphicsLayerFactory, this);
- m_pageScaleLayer = GraphicsLayer::create(graphicsLayerFactory, this);
- m_innerViewportScrollLayer = GraphicsLayer::create(graphicsLayerFactory, this);
- m_overlayScrollbarHorizontal = GraphicsLayer::create(graphicsLayerFactory, this);
- m_overlayScrollbarVertical = GraphicsLayer::create(graphicsLayerFactory, this);
+ m_rootTransformLayer = GraphicsLayer::create(this);
+ m_innerViewportContainerLayer = GraphicsLayer::create(this);
+ m_overscrollElasticityLayer = GraphicsLayer::create(this);
+ m_pageScaleLayer = GraphicsLayer::create(this);
+ m_innerViewportScrollLayer = GraphicsLayer::create(this);
+ m_overlayScrollbarHorizontal = GraphicsLayer::create(this);
+ m_overlayScrollbarVertical = GraphicsLayer::create(this);
ScrollingCoordinator* coordinator = frameHost().page().scrollingCoordinator();
ASSERT(coordinator);
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.h ('k') | third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698