| Index: Source/core/paint/ClipRecorderTest.cpp
|
| diff --git a/Source/core/paint/ClipRecorderTest.cpp b/Source/core/paint/ClipRecorderTest.cpp
|
| index e03ab29e02a18f68232057a2c470db9e2edaf04c..981b921be8dd1bf322016396f926b1bf243c8b4d 100644
|
| --- a/Source/core/paint/ClipRecorderTest.cpp
|
| +++ b/Source/core/paint/ClipRecorderTest.cpp
|
| @@ -9,8 +9,6 @@
|
| #include "core/rendering/RenderingTestHelper.h"
|
| #include "core/rendering/compositing/RenderLayerCompositor.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| -#include "platform/graphics/GraphicsLayer.h"
|
| -#include "platform/graphics/paint/DisplayItemList.h"
|
| #include <gtest/gtest.h>
|
|
|
| namespace blink {
|
| @@ -22,7 +20,6 @@ public:
|
|
|
| protected:
|
| RenderView* renderView() { return m_renderView; }
|
| - DisplayItemList& rootDisplayItemList() { return renderView()->layer()->graphicsLayerBacking()->displayItemList(); }
|
|
|
| private:
|
| virtual void SetUp() override
|
| @@ -30,7 +27,6 @@ private:
|
| RuntimeEnabledFeatures::setSlimmingPaintEnabled(true);
|
|
|
| RenderingTest::SetUp();
|
| - enableCompositing();
|
|
|
| m_renderView = document().view()->renderView();
|
| ASSERT_TRUE(m_renderView);
|
| @@ -50,10 +46,10 @@ TEST_F(ClipRecorderTest, ClipRecorderTest_Single)
|
| {
|
| GraphicsContext* context = new GraphicsContext(nullptr);
|
| FloatRect bound = renderView()->viewRect();
|
| - EXPECT_EQ((size_t)0, rootDisplayItemList().paintList().size());
|
| + EXPECT_EQ((size_t)0, renderView()->viewDisplayList().paintList().size());
|
|
|
| drawClip(context, renderView(), PaintPhaseForeground, bound);
|
| - EXPECT_EQ((size_t)2, rootDisplayItemList().paintList().size());
|
| + EXPECT_EQ((size_t)2, renderView()->viewDisplayList().paintList().size());
|
| }
|
|
|
| }
|
|
|