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

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

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/paint/ScrollableAreaPainter.cpp ('k') | Source/core/rendering/ClipRectsCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ViewDisplayListTest.cpp
diff --git a/Source/core/paint/ViewDisplayListTest.cpp b/Source/core/paint/ViewDisplayListTest.cpp
index 03b0dd7d7896037dd4c33603135070558bb40292..611d3babbb6984bcdd4545fb7aa3861007d6013c 100644
--- a/Source/core/paint/ViewDisplayListTest.cpp
+++ b/Source/core/paint/ViewDisplayListTest.cpp
@@ -4,7 +4,7 @@
#include "config.h"
-#include "core/layout/compositing/RenderLayerCompositor.h"
+#include "core/layout/compositing/LayerCompositor.h"
#include "core/paint/LayerClipRecorder.h"
#include "core/paint/LayerPainter.h"
#include "core/paint/RenderDrawingRecorder.h"
@@ -86,7 +86,7 @@ void drawRect(GraphicsContext* context, RenderObject* renderer, PaintPhase phase
context->drawRect(rect);
}
-void drawClippedRect(GraphicsContext* context, RenderLayerModelObject* renderer, PaintPhase phase, const FloatRect& bound)
+void drawClippedRect(GraphicsContext* context, LayoutLayerModelObject* renderer, PaintPhase phase, const FloatRect& bound)
{
IntRect rect(1, 1, 9, 9);
ClipRect clipRect(rect);
@@ -402,8 +402,8 @@ TEST_F(ViewDisplayListTest, DISABLED_ViewDisplayListTest_UpdateAddLastOverlap)
TEST_F(ViewDisplayListTest, ViewDisplayListTest_UpdateClip)
{
setBodyInnerHTML("<div id='first'><div id='second'></div></div>");
- RenderLayerModelObject* firstRenderer = toRenderLayerModelObject(document().body()->firstChild()->renderer());
- RenderLayerModelObject* secondRenderer = toRenderLayerModelObject(document().body()->firstChild()->firstChild()->renderer());
+ LayoutLayerModelObject* firstRenderer = toLayoutLayerModelObject(document().body()->firstChild()->renderer());
+ LayoutLayerModelObject* secondRenderer = toLayoutLayerModelObject(document().body()->firstChild()->firstChild()->renderer());
GraphicsContext context(nullptr, &rootDisplayItemList());
ClipRect firstClipRect(IntRect(1, 1, 2, 2));
@@ -450,8 +450,8 @@ TEST_F(ViewDisplayListTest, CachedDisplayItems)
RuntimeEnabledFeatures::setSlimmingPaintDisplayItemCacheEnabled(true);
setBodyInnerHTML("<div id='first'><div id='second'></div></div>");
- RenderLayerModelObject* firstRenderer = toRenderLayerModelObject(document().body()->firstChild()->renderer());
- RenderLayerModelObject* secondRenderer = toRenderLayerModelObject(document().body()->firstChild()->firstChild()->renderer());
+ LayoutLayerModelObject* firstRenderer = toLayoutLayerModelObject(document().body()->firstChild()->renderer());
+ LayoutLayerModelObject* secondRenderer = toLayoutLayerModelObject(document().body()->firstChild()->firstChild()->renderer());
GraphicsContext context(nullptr, &rootDisplayItemList());
drawRect(&context, firstRenderer, PaintPhaseBlockBackground, FloatRect(100, 100, 150, 150));
@@ -493,7 +493,7 @@ TEST_F(ViewDisplayListTest, FullDocumentPaintingWithCaret)
{
setBodyInnerHTML("<div id='div' contentEditable='true'>XYZ</div>");
RenderView* renderView = document().renderView();
- RenderLayer* rootLayer = renderView->layer();
+ Layer* rootLayer = renderView->layer();
RenderObject* htmlRenderer = document().documentElement()->renderer();
Element* div = toElement(document().body()->firstChild());
RenderObject* divRenderer = document().body()->firstChild()->renderer();
« no previous file with comments | « Source/core/paint/ScrollableAreaPainter.cpp ('k') | Source/core/rendering/ClipRectsCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698