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

Unified Diff: Source/core/paint/ClipRecorderTest.cpp

Issue 723103002: Revert "Move ViewDisplayList to GraphicsLayer" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/core/paint/ClipRecorder.cpp ('k') | Source/core/paint/DrawingRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
« no previous file with comments | « Source/core/paint/ClipRecorder.cpp ('k') | Source/core/paint/DrawingRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698